From 079218ffbf822dd46349038055068fa99ea1e8de Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Wed, 26 Nov 2025 14:20:05 +0530 Subject: [PATCH] fix: exchange_rate field visibility on invoice currency change --- erpnext/public/js/controllers/transaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index a46a273017f..468900847a0 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -1697,13 +1697,13 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe var company_currency = this.get_company_currency(); if ( - this._last_company_currency === company_currency && + this._last_currency === this.frm.doc.currency && this._last_price_list_currency === this.frm.doc.price_list_currency ) { return; } - this._last_company_currency = company_currency; + this._last_currency = this.frm.doc.currency; this._last_price_list_currency = this.frm.doc.price_list_currency; this.change_form_labels(company_currency);