mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: exchange_rate field visibility on invoice currency change
This commit is contained in:
@@ -1697,13 +1697,13 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
var company_currency = this.get_company_currency();
|
var company_currency = this.get_company_currency();
|
||||||
|
|
||||||
if (
|
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
|
this._last_price_list_currency === this.frm.doc.price_list_currency
|
||||||
) {
|
) {
|
||||||
return;
|
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._last_price_list_currency = this.frm.doc.price_list_currency;
|
||||||
|
|
||||||
this.change_form_labels(company_currency);
|
this.change_form_labels(company_currency);
|
||||||
|
|||||||
Reference in New Issue
Block a user