orders: add new fields to order model

This commit is contained in:
behruz-dev
2025-11-10 15:28:31 +05:00
parent 8a298b76f1
commit 1cd005c804
9 changed files with 90 additions and 26 deletions

View File

@@ -49,6 +49,10 @@ class Order(BaseModel):
amount = models.DecimalField(max_digits=15, decimal_places=2, default=0.00)
qqs = models.PositiveBigIntegerField(null=True, blank=True)
received_count = models.PositiveBigIntegerField(default=0)
received_date = models.DateField(null=True, blank=True)
completion_percentage = models.FloatField(default=0)
def __str__(self):
return f"{self.product} {self.unity} quantity order"