Merge pull request #36464 from frappe/mergify/bp/version-14-hotfix/pr-36455

fix: handle None value in payment_term_outstanding (backport #36455)
This commit is contained in:
ruthra kumar
2023-08-02 16:54:38 +05:30
committed by GitHub

View File

@@ -238,7 +238,8 @@ class PaymentEntry(AccountsController):
d.payment_term
and (
(flt(d.allocated_amount)) > 0
and flt(d.allocated_amount) > flt(latest.payment_term_outstanding)
and latest.payment_term_outstanding
and (flt(d.allocated_amount) > flt(latest.payment_term_outstanding))
)
and self.term_based_allocation_enabled_for_reference(d.reference_doctype, d.reference_name)
):