This commit is contained in:
behruz-dev
2025-11-12 15:21:02 +05:00
parent 51ec0a6a22
commit 8f47f65cb2
2 changed files with 3 additions and 13 deletions

View File

@@ -61,16 +61,6 @@ class Party(BaseModel):
return f'P - {self.number}'
def save(self, *args, **kwargs):
# if self.status in ['NEW', 'CANCELLED', 'DRAFT']:
# self.process = 0
# elif self.status == 'EXPECTED':
# self.process = 25
# elif self.status == 'PROCESS':
# self.process = 50
# elif self.status == 'PURCHASED':
# self.process = 75
# elif self.status == 'PARTY_IS_MADE':
# self.process == 100
percentage = 0
count = 0
for order in self.orders.all():