mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 11:55:11 +00:00
fix: pos adding item multiple times on item group filter
(cherry picked from commit e9f99e5a3f)
This commit is contained in:
@@ -345,7 +345,10 @@ erpnext.PointOfSale.ItemSelector = class {
|
|||||||
const items = this.search_index[selling_price_list][search_term];
|
const items = this.search_index[selling_price_list][search_term];
|
||||||
this.items = items;
|
this.items = items;
|
||||||
this.render_item_list(items);
|
this.render_item_list(items);
|
||||||
this.auto_add_item && this.items.length == 1 && this.add_filtered_item_to_cart();
|
this.auto_add_item &&
|
||||||
|
this.search_field.$input[0].value &&
|
||||||
|
this.items.length == 1 &&
|
||||||
|
this.add_filtered_item_to_cart();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -358,7 +361,10 @@ erpnext.PointOfSale.ItemSelector = class {
|
|||||||
}
|
}
|
||||||
this.items = items;
|
this.items = items;
|
||||||
this.render_item_list(items);
|
this.render_item_list(items);
|
||||||
this.auto_add_item && this.items.length == 1 && this.add_filtered_item_to_cart();
|
this.auto_add_item &&
|
||||||
|
this.search_field.$input[0].value &&
|
||||||
|
this.items.length == 1 &&
|
||||||
|
this.add_filtered_item_to_cart();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user