Skip to content

Commit

Permalink
fix: payment entry rounding error
Browse files Browse the repository at this point in the history
  • Loading branch information
dj12djdjs committed Nov 18, 2023
1 parent 56e92b7 commit 3d1e3a9
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 3d1e3a9

Please sign in to comment.