[opt] transaction.js
This commit is contained in:
parent
652dee45a6
commit
bb8c6de043
@ -441,10 +441,15 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
this.frm.toggle_reqd("plc_conversion_rate",
|
this.frm.toggle_reqd("plc_conversion_rate",
|
||||||
!!(this.frm.doc.price_list_name && this.frm.doc.price_list_currency));
|
!!(this.frm.doc.price_list_name && this.frm.doc.price_list_currency));
|
||||||
|
|
||||||
|
if(this.frm.doc_currency!==this.frm.doc.currency) {
|
||||||
|
// reset names only when the currency is different
|
||||||
|
|
||||||
var company_currency = this.get_company_currency();
|
var company_currency = this.get_company_currency();
|
||||||
this.change_form_labels(company_currency);
|
this.change_form_labels(company_currency);
|
||||||
this.change_grid_labels(company_currency);
|
this.change_grid_labels(company_currency);
|
||||||
this.frm.refresh_fields();
|
this.frm.refresh_fields();
|
||||||
|
this.frm.doc_currency = this.frm.doc.currency;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
change_form_labels: function(company_currency) {
|
change_form_labels: function(company_currency) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user