commit | 28c02fe51dec96daaf7211edea5ec1b16e2c5ad5 | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Fri Jun 10 00:48:03 2016 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Fri Jun 10 00:48:03 2016 +0530 |
tree | 2346faf9ca188caa3c23e3094e8f61d96b3de12b | |
parent | 51ad436e166c7a502a47e7415f37d773a6ea0edc [diff] |
[Fix] POS page loading issue, if system has only one item
diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index 4b3da28..b3d152f 100644 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js
@@ -356,7 +356,8 @@ }); } - if(this.items.length == 1){ + if(this.items.length == 1 + && this.search.$input.val()) { this.search.$input.val(""); this.add_to_cart(); }