mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
fix: Offline pos fix (#16424)
* Offline POS fix * Fixed items search and load items
This commit is contained in:
@@ -1135,18 +1135,15 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
apply_category: function() {
|
apply_category: function() {
|
||||||
frappe.db.get_value("Item Group", {lft: 1, is_group: 1}, "name", (r) => {
|
var me = this;
|
||||||
category = this.selected_item_group || r.name;
|
category = this.selected_item_group || "All Item Groups";
|
||||||
|
if(category == 'All Item Groups') {
|
||||||
if(category == r.name) {
|
return this.item_data
|
||||||
return this.item_data
|
} else {
|
||||||
} else {
|
return this.item_data.filter(function(element, index, array){
|
||||||
return this.item_data.filter(function(element, index, array){
|
return element.item_group == category;
|
||||||
return element.item_group == category;
|
});
|
||||||
});
|
}
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
bind_items_event: function() {
|
bind_items_event: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user