diff --git a/erpnext/accounts/doctype/payment_reference/payment_reference.json b/erpnext/accounts/doctype/payment_reference/payment_reference.json index a1adb181d35..4e1e0ac22e3 100644 --- a/erpnext/accounts/doctype/payment_reference/payment_reference.json +++ b/erpnext/accounts/doctype/payment_reference/payment_reference.json @@ -14,7 +14,8 @@ "section_break_mjlv", "due_date", "column_break_qghl", - "amount" + "amount", + "currency" ], "fields": [ { @@ -55,8 +56,18 @@ "fieldtype": "Currency", "in_list_view": 1, "label": "Amount", + "options": "currency", "precision": "2" }, + { + "fieldname": "currency", + "fieldtype": "Link", + "hidden": 1, + "label": "Currency", + "options": "Currency", + "print_hide": 1, + "read_only": 1 + }, { "fieldname": "column_break_lnjp", "fieldtype": "Column Break" @@ -74,7 +85,7 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2026-01-19 02:21:36.455830", + "modified": "2026-07-11 00:00:00.000000", "modified_by": "Administrator", "module": "Accounts", "name": "Payment Reference", diff --git a/erpnext/accounts/doctype/payment_request/payment_request.py b/erpnext/accounts/doctype/payment_request/payment_request.py index 4e12deb5097..70b28141cf6 100644 --- a/erpnext/accounts/doctype/payment_request/payment_request.py +++ b/erpnext/accounts/doctype/payment_request/payment_request.py @@ -784,6 +784,7 @@ def set_payment_references(payment_schedules): "description": row.get("description"), "due_date": row.get("due_date"), "amount": row.get("payment_amount"), + "currency": row.get("currency"), } ) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 410ab292170..63d450de221 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -518,7 +518,10 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe return; } - schedules.forEach((schedule) => (schedule.__checked = 1)); + schedules.forEach((schedule) => { + schedule.__checked = 1; + schedule.currency = frm.doc.currency; + }); const dialog = new frappe.ui.Dialog({ title: __("Select Payment Schedule"), @@ -552,10 +555,19 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe in_list_view: 1, read_only: 1, }, + { + fieldtype: "Link", + fieldname: "currency", + label: __("Currency"), + options: "Currency", + hidden: 1, + read_only: 1, + }, { fieldtype: "Currency", fieldname: "payment_amount", label: __("Amount"), + options: "currency", in_list_view: 1, read_only: 1, },