Fix ordering in items and fix qute to accept value more than remaining value.
This commit is contained in:
parent
8bc2bdef5f
commit
9cadf4eed5
3 changed files with 5 additions and 5 deletions
|
|
@ -147,8 +147,8 @@ class Quote(NameSlugModel):
|
|||
"""مبلغ باقیمانده بر اساس پرداختها"""
|
||||
paid = self.get_paid_amount()
|
||||
remaining = self.final_amount - paid
|
||||
if remaining < 0:
|
||||
remaining = Decimal('0')
|
||||
# if remaining < 0:
|
||||
# remaining = Decimal('0')
|
||||
return remaining
|
||||
|
||||
def get_vat_amount(self) -> Decimal:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue