Merge pull request #38189 from frappe/mergify/bp/version-15-hotfix/pr-38177

fix: payment entry rounding error (#38177)
This commit is contained in:
Deepesh Garg 2023-11-19 19:10:59 +05:30 committed by GitHub
commit d0ae566e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(