Skip to content

Commit 9fce694

Browse files
fix: Ensure paid_amount is always numeric before calling allocate_amount_to_references (backport #50935) (#52035)
fix: Ensure paid_amount is always numeric before calling allocate_amount_to_references (#50935) fix: ensure paid_amount is not null in allocate_party_amount_against_ref_docs (cherry picked from commit 50b3396) Co-authored-by: El-Shafei H. <el.shafei.developer@gmail.com>
1 parent 0e3d276 commit 9fce694

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erpnext/accounts/doctype/payment_entry/payment_entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ frappe.ui.form.on("Payment Entry", {
11191119

11201120
allocate_party_amount_against_ref_docs: async function (frm, paid_amount, paid_amount_change) {
11211121
await frm.call("allocate_amount_to_references", {
1122-
paid_amount: paid_amount,
1122+
paid_amount: flt(paid_amount),
11231123
paid_amount_change: paid_amount_change,
11241124
allocate_payment_amount: frappe.flags.allocate_payment_amount ?? false,
11251125
});

0 commit comments

Comments
 (0)