fix
This commit is contained in:
@@ -151,10 +151,10 @@ class CounterpartyBalance(BaseModel):
|
||||
total_price=models.Sum("price")
|
||||
)['total_price'] or 0
|
||||
party_amount = total_amount - paid_amount
|
||||
if expence != paid_amount:
|
||||
return (party_amount + income) - expence
|
||||
else:
|
||||
return (total_amount + income) - expence
|
||||
# if expence != paid_amount:
|
||||
# return (party_amount + income) - expence
|
||||
# else:
|
||||
return (total_amount + income) - expence
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.counterparty.name}"
|
||||
|
||||
Reference in New Issue
Block a user