From 9fce694936f38ba62399aba9ba28517462c0731f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:03:51 +0530 Subject: [PATCH] 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 50b3396064b0d067b333d28ac0c6b2cb9416c306) Co-authored-by: El-Shafei H. --- erpnext/accounts/doctype/payment_entry/payment_entry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.js b/erpnext/accounts/doctype/payment_entry/payment_entry.js index 852fcc6807b..db2004b8c8f 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.js +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.js @@ -1119,7 +1119,7 @@ frappe.ui.form.on("Payment Entry", { allocate_party_amount_against_ref_docs: async function (frm, paid_amount, paid_amount_change) { await frm.call("allocate_amount_to_references", { - paid_amount: paid_amount, + paid_amount: flt(paid_amount), paid_amount_change: paid_amount_change, allocate_payment_amount: frappe.flags.allocate_payment_amount ?? false, });