[fix] apply price list

in_apply_price_list flag remains true if server exception occurs
This commit is contained in:
Faris Ansari 2018-05-14 15:46:45 +05:30
parent bbee9b6cc4
commit 404f39d373

View File

@ -106,7 +106,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
}
if(
this.frm.docstatus < 2
this.frm.docstatus < 2
&& this.frm.fields_dict["payment_terms_template"]
&& this.frm.fields_dict["payment_schedule"]
&& this.frm.doc.payment_terms_template
@ -1094,6 +1094,8 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
me.in_apply_price_list = false;
}
}
}).always(() => {
me.in_apply_price_list = false;
});
},