fix for the update button in the sales invoice (#13435)

This commit is contained in:
Manas Solanki
2018-04-02 10:32:00 +05:30
committed by Nabin Hait
parent a8df73c263
commit a7f5589564
2 changed files with 5 additions and 2 deletions

View File

@@ -106,7 +106,8 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
}
if(
this.frm.fields_dict["payment_terms_template"]
this.frm.docstatus < 2
&& this.frm.fields_dict["payment_terms_template"]
&& this.frm.fields_dict["payment_schedule"]
&& this.frm.doc.payment_terms_template
&& !this.frm.doc.payment_schedule.length