Skip to content

Commit

Permalink
fix(Payment Entry): compare rounded amount (#36011)
Browse files Browse the repository at this point in the history
fix(Payment Entry): compare rounded amount (#36011)

(cherry picked from commit 4badac8)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
  • Loading branch information
mergify[bot] and barredterra committed Jul 5, 2023
1 parent 9b9d839 commit b04c190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,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(
_(
Expand Down

0 comments on commit b04c190

Please sign in to comment.