mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
[Fix] POS page loading issue, if system has only one item
This commit is contained in:
@@ -356,7 +356,8 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
|
||||
});
|
||||
}
|
||||
|
||||
if(this.items.length == 1){
|
||||
if(this.items.length == 1
|
||||
&& this.search.$input.val()) {
|
||||
this.search.$input.val("");
|
||||
this.add_to_cart();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user