Merge pull request #17138 from rohitwaghchaure/search_items_not_works_in_the_pos

fix: POS search items not works properly if item group filter has applied
This commit is contained in:
rohitwaghchaure 2019-04-05 00:45:53 +05:30 committed by GitHub
commit cbdd3304a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
});