Skip to content

Commit

Permalink
Merge pull request #36016 from frappe/mergify/bp/version-14/pr-36013
Browse files Browse the repository at this point in the history
fix(Payment Entry): compare rounded amount (#36011)
  • Loading branch information
deepeshgarg007 committed Jul 5, 2023
2 parents f360bdc + 03e4583 commit 279f51e
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 @@ -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(
_(
Expand Down

0 comments on commit 279f51e

Please sign in to comment.