fix: sider issues

This commit is contained in:
Saqib Ansari 2021-04-29 14:05:20 +05:30
parent 2bde1baa38
commit 3e83542360

View File

@ -1363,9 +1363,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
}
this.update_payment_schedule_grid_labels(company_currency);
// set labels
var $wrapper = $(this.frm.wrapper);
},
update_item_grid_labels: function(company_currency) {
@ -2045,6 +2042,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
},
payment_term: function(doc, cdt, cdn) {
const me = this;
var row = locals[cdt][cdn];
if(row.payment_term) {
frappe.call({
@ -2061,7 +2059,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
for (var d in r.message) {
frappe.model.set_value(cdt, cdn, d, r.message[d]);
const company_currency = me.get_company_currency();
this.update_payment_schedule_grid_labels(company_currency);
me.update_payment_schedule_grid_labels(company_currency);
}
}
}