Skip to content

Commit

Permalink
Merge pull request #38189 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-38177

fix: payment entry rounding error (#38177)
  • Loading branch information
deepeshgarg007 authored Nov 19, 2023
2 parents 13d9652 + 384d6b5 commit d0ae566
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/payment_entry/payment_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ frappe.ui.form.on('Payment Entry', {

var allocated_positive_outstanding = paid_amount + allocated_negative_outstanding;
} else if (in_list(["Customer", "Supplier"], frm.doc.party_type)) {
total_negative_outstanding = flt(total_negative_outstanding, precision("outstanding_amount"))
if(paid_amount > total_negative_outstanding) {
if(total_negative_outstanding == 0) {
frappe.msgprint(
Expand Down

0 comments on commit d0ae566

Please sign in to comment.