fix: setting paid amount to 0 when is_paid is unchecked in purchase invoice

(cherry picked from commit e358a9e53f)
This commit is contained in:
ljain112
2025-05-22 13:49:26 +05:30
committed by Mergify
parent 70f9c13f3c
commit 895231a8a7
2 changed files with 5 additions and 0 deletions

View File

@@ -649,6 +649,9 @@ class AccountsController(TransactionBase):
self.base_paid_amount = flt(
self.paid_amount * self.conversion_rate, self.precision("base_paid_amount")
)
else:
self.paid_amount = 0
self.base_paid_amount = 0
def set_missing_values(self, for_validate=False):
if frappe.flags.in_test: