Fix ordering in items and fix qute to accept value more than remaining value.

This commit is contained in:
aminhashemi92 2025-12-05 18:42:51 +03:30
parent 8bc2bdef5f
commit 9cadf4eed5
3 changed files with 5 additions and 5 deletions

View file

@ -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: