mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-24 00:58:29 +00:00
perf: avoid unnecessary set_dynamic_labels updates
This commit is contained in:
committed by
ruthra kumar
parent
87cbed0911
commit
946073cfd9
@@ -1679,6 +1679,17 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
||||
);
|
||||
|
||||
var company_currency = this.get_company_currency();
|
||||
|
||||
if (
|
||||
this._last_company_currency === company_currency &&
|
||||
this._last_price_list_currency === this.frm.doc.price_list_currency
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._last_company_currency = company_currency;
|
||||
this._last_price_list_currency = this.frm.doc.price_list_currency;
|
||||
|
||||
this.change_form_labels(company_currency);
|
||||
this.change_grid_labels(company_currency);
|
||||
this.frm.refresh_fields();
|
||||
|
||||
Reference in New Issue
Block a user