This commit is contained in:
behruz-dev
2025-10-25 16:41:09 +05:00
parent 7ba54bfeb2
commit eee3cd5064
16 changed files with 338987 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ class Order(BaseModel):
Project, on_delete=models.SET_NULL, related_name='orders', null=True, blank=True
)
wherehouse = models.ForeignKey(
WhereHouse, on_delete=models.CASCADE, related_name='orders'
WhereHouse, on_delete=models.CASCADE, related_name='orders', null=True, blank=True
)
employee = models.ForeignKey(User, on_delete=models.CASCADE, related_name='orders', null=True)
counterparty = models.ForeignKey(

View File

@@ -14,6 +14,7 @@ class Party(BaseModel):
('CANCELLED', 'bekor qilingan'),
('PURCHASED', 'sotib olinmoqda'),
('PROCESS', 'jarayonda'),
("RECIEVED", 'qabul qilingan'),
]
PAYMENT_STATUS = (
('PAID', "to'langan"),