fix: POS search items not works properly if item group filter has applied

This commit is contained in:
Rohit Waghchaure 2019-04-04 16:02:15 +05:30
parent 0a57ef4bea
commit 0a4aee0206

View File

@ -1247,7 +1247,10 @@ class POSItems {
clearTimeout(this.last_search);
this.last_search = setTimeout(() => {
const search_term = e.target.value;
this.filter_items({ search_term });
const item_group = this.item_group_field ?
this.item_group_field.get_value() : '';
this.filter_items({ search_term:search_term, item_group: item_group});
}, 300);
});