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

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

(cherry picked from commit 4badac8e9e)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
(cherry picked from commit b04c190e33)
This commit is contained in:
mergify[bot]
2023-07-05 21:38:11 +05:30
committed by Mergify
parent 77d019cc3b
commit a370dc3dcc

View File

@@ -196,7 +196,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(
_(