From d10014bdebc3df0a7000babb981882d6793ccdc2 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 8 Dec 2017 16:51:44 +0530 Subject: [PATCH] minor fix in fetching payment terms template --- erpnext/public/js/controllers/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 6b20212673..3492ad954d 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -1182,7 +1182,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ payment_terms_template: function() { var me = this; - if(this.frm.doc.payment_terms_template && this.frm.doc.payment_schedule.length === 0) { + if(this.frm.doc.payment_terms_template && !this.frm.doc.payment_schedule) { frappe.call({ method: "erpnext.controllers.accounts_controller.get_payment_terms", args: {