commit | 8c9c9cfc5fd0938a97b117a8aebfb031cebd6b95 | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Tue Dec 27 12:31:35 2016 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Tue Dec 27 17:31:32 2016 +0530 |
tree | 0a9c5817f829993425c23d1c4c02ae07a99d696c | |
parent | a6be7c71edf5361ea0d4d7406e71363052295c37 [diff] [blame] |
When a new company is made, cash account should be automatically set for Mode of Payment
diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index a4078bd..c0f82bc 100644 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js
@@ -593,7 +593,7 @@ this.remove_item = [] $.each(this.frm.doc["items"] || [], function(i, d) { - if(d.serial_no){ + if(d.serial_no && field == 'qty'){ me.validate_serial_no_qty(d, item_code, field, value) }