From d6f797d0776bca628418e8cdf009858efb247f23 Mon Sep 17 00:00:00 2001 From: Mohd Haris Date: Mon, 20 Jul 2026 11:59:15 +0530 Subject: [PATCH] fix: use account currency in Bank Reconciliation Statement print The custom print template formatted debit/credit amounts with format_currency() without passing a currency, so it fell back to the company/system default currency (e.g. INR) instead of the selected bank account's currency. The on-screen report already formats correctly via the column's account_currency option. Pass each row's account_currency to format_currency() so the printed/PDF output matches the on-screen currency. Co-Authored-By: Claude Opus 4.8 --- .../bank_reconciliation_statement.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.html b/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.html index 6957ab41681..4596374cff6 100644 --- a/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.html +++ b/erpnext/accounts/report/bank_reconciliation_statement/bank_reconciliation_statement.html @@ -28,16 +28,16 @@
{%= __("Clearance Date") %}: {%= frappe.datetime.str_to_user(data[i]["clearance_date"]) %} {% } %} - {%= format_currency(data[i]["debit"]) %} - {%= format_currency(data[i]["credit"]) %} + {%= format_currency(data[i]["debit"], data[i]["account_currency"]) %} + {%= format_currency(data[i]["credit"], data[i]["account_currency"]) %} {% } else { %} {%= data[i]["payment_entry"] %} - {%= format_currency(data[i]["debit"]) %} - {%= format_currency(data[i]["credit"]) %} + {%= format_currency(data[i]["debit"], data[i]["account_currency"]) %} + {%= format_currency(data[i]["credit"], data[i]["account_currency"]) %} {% } %} {% } %}