From e9f3f0f4452baee839cfd1b1bca20daa5b9a9021 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:03:34 +0530 Subject: [PATCH] fix: Ensure paid_amount is always numeric before calling allocate_amount_to_references (backport #50935) (#52036) 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 3020e4e6659..b65fff308b1 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.js +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.js @@ -1104,7 +1104,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, });