[fix] apply price list
in_apply_price_list flag remains true if server exception occurs
This commit is contained in:
parent
bbee9b6cc4
commit
404f39d373
@ -106,7 +106,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(
|
if(
|
||||||
this.frm.docstatus < 2
|
this.frm.docstatus < 2
|
||||||
&& this.frm.fields_dict["payment_terms_template"]
|
&& this.frm.fields_dict["payment_terms_template"]
|
||||||
&& this.frm.fields_dict["payment_schedule"]
|
&& this.frm.fields_dict["payment_schedule"]
|
||||||
&& this.frm.doc.payment_terms_template
|
&& this.frm.doc.payment_terms_template
|
||||||
@ -1094,6 +1094,8 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
me.in_apply_price_list = false;
|
me.in_apply_price_list = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}).always(() => {
|
||||||
|
me.in_apply_price_list = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user