From 52beb77539c8d9b8ddfcd8353c58381193553000 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 29 Jan 2018 17:40:44 +0530 Subject: [PATCH] Don't validate payment terms for POS (#12692) --- 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 31488de2375..eb333af1ed4 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -539,7 +539,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ due_date: function() { // due_date is to be changed, payment terms template and/or payment schedule must // be removed as due_date is automatically changed based on payment terms - if (this.frm.doc.due_date && !this.frm.updating_party_details) { + if (this.frm.doc.due_date && !this.frm.updating_party_details && !this.frm.doc.is_pos) { if (this.frm.doc.payment_terms_template || (this.frm.doc.payment_schedule && this.frm.doc.payment_schedule.length)) { var message1 = "";