Skip to content

Commit 934b549

Browse files
fix(payment entry): update currency symbol (backport #51956) (#52093)
Co-authored-by: NaviN <118178330+Navin-S-R@users.noreply.github.com> fix(payment entry): update currency symbol (#51956)
1 parent 72a9b58 commit 934b549

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

erpnext/accounts/doctype/payment_entry/payment_entry.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,16 @@ frappe.ui.form.on("Payment Entry", {
400400
);
401401

402402
frm.refresh_fields();
403+
404+
const party_currency =
405+
frm.doc.payment_type === "Receive" ? "paid_from_account_currency" : "paid_to_account_currency";
406+
407+
var reference_grid = frm.fields_dict["references"].grid;
408+
["total_amount", "outstanding_amount", "allocated_amount"].forEach((fieldname) => {
409+
reference_grid.update_docfield_property(fieldname, "options", party_currency);
410+
});
411+
412+
reference_grid.refresh();
403413
},
404414

405415
show_general_ledger: function (frm) {

0 commit comments

Comments
 (0)