From 03e458390b8f06d84a6fa99a0c9f20bb158372d6 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 5 Jul 2023 21:38:30 +0530 Subject: [PATCH] fix(Payment Entry): compare rounded amount (#36011) fix(Payment Entry): compare rounded amount (#36011) (cherry picked from commit 4badac8e9e43473c663c49f3f4d3fa4bf3172941) Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> (cherry picked from commit d80b0aa157be79eee966b5bbe9715c84fdc9e204) --- erpnext/accounts/doctype/payment_entry/payment_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index 371e81385673..a7d3435aa03a 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -194,7 +194,7 @@ def validate_allocated_amount_with_latest_data(self): # 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( _(