From b1b1f25bb111d1a7c33de38597b06b6efc08dbbe Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 27 Jan 2026 06:34:19 +0000 Subject: [PATCH] fix(payment entry): update currency symbol (backport #51956) (#52094) Co-authored-by: NaviN <118178330+Navin-S-R@users.noreply.github.com> fix(payment entry): update currency symbol (#51956) --- .../accounts/doctype/payment_entry/payment_entry.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.js b/erpnext/accounts/doctype/payment_entry/payment_entry.js index b65fff308b1..c3743c6e1f0 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.js +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.js @@ -400,6 +400,16 @@ frappe.ui.form.on("Payment Entry", { ); frm.refresh_fields(); + + const party_currency = + frm.doc.payment_type === "Receive" ? "paid_from_account_currency" : "paid_to_account_currency"; + + var reference_grid = frm.fields_dict["references"].grid; + ["total_amount", "outstanding_amount", "allocated_amount"].forEach((fieldname) => { + reference_grid.update_docfield_property(fieldname, "options", party_currency); + }); + + reference_grid.refresh(); }, show_general_ledger: function (frm) {