We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a9b58 commit 934b549Copy full SHA for 934b549
1 file changed
erpnext/accounts/doctype/payment_entry/payment_entry.js
@@ -400,6 +400,16 @@ frappe.ui.form.on("Payment Entry", {
400
);
401
402
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();
413
},
414
415
show_general_ledger: function (frm) {
0 commit comments