fix
This commit is contained in:
@@ -100,7 +100,6 @@ class PartyAmount(BaseModel):
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
self.total_price = self.party.orders.aggregate(total_price=models.Sum('total_price'))['total_price'] or 0
|
||||
self.calculated_amount = self.total_price
|
||||
if self.calculated_amount < self.paid_amount:
|
||||
self.overdue_amount = self.paid_amount - self.calculated_amount
|
||||
self.payment_amount = 0
|
||||
|
||||
Reference in New Issue
Block a user