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

This commit is contained in:
Raffael Meyer 2023-07-05 18:05:41 +02:00 committed by GitHub
parent 98281341b9
commit 4badac8e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ class PaymentEntry(AccountsController):
# The reference has already been partly paid
elif (
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(
_(