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