bug fix: sales invoice always dirty even after reloading

This commit is contained in:
tunde 2017-09-26 10:39:30 +01:00
parent 095cfc9cfc
commit 79f9a4aef1

View File

@ -1131,7 +1131,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
payment_terms_template: function() {
var me = this;
if(this.frm.doc.payment_terms_template) {
if(this.frm.doc.payment_terms_template && this.frm.doc.payment_schedule.length === 0) {
frappe.call({
method: "erpnext.controllers.accounts_controller.get_payment_terms",
args: {