fix(Payment Entry): compare rounded amount (#36011)

fix(Payment Entry): compare rounded amount (#36011)
This commit is contained in:
Deepesh Garg
2023-07-05 21:47:04 +05:30
committed by GitHub

View File

@@ -196,7 +196,7 @@ class PaymentEntry(AccountsController):
# The reference has already been partly paid # The reference has already been partly paid
elif ( elif (
latest.outstanding_amount < latest.invoice_amount latest.outstanding_amount < latest.invoice_amount
and d.outstanding_amount != latest.outstanding_amount and flt(d.outstanding_amount, d.precision("outstanding_amount")) != latest.outstanding_amount
): ):
frappe.throw( frappe.throw(
_( _(