orders: forgotten value is putting

This commit is contained in:
behruz-dev
2025-11-11 15:09:48 +05:00
parent 64354fee80
commit 1b61d2327a

View File

@@ -70,6 +70,7 @@ class Party(BaseModel):
elif self.status == 'PURCHASED':
self.process = 75
elif self.status == 'PARTY_IS_MADE':
percentage = 0.0
for order in self.orders.all():
percentage += order.completion_percentage
self.process = percentage