Merge pull request #10559 from mntechnique/pos_scanner_hotfix
[Fix] POS Scanner
This commit is contained in:
commit
847f9f80c1
@ -426,11 +426,16 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.serach_item.make_input();
|
this.serach_item.make_input();
|
||||||
this.serach_item.$input.on("keyup", function () {
|
|
||||||
setTimeout(function () {
|
this.serach_item.$input.on("keypress", function (event) {
|
||||||
me.items = me.get_items();
|
|
||||||
me.make_item_list();
|
clearTimeout(me.last_search_timeout);
|
||||||
}, 1000);
|
me.last_search_timeout = setTimeout(() => {
|
||||||
|
if((me.serach_item.$input.val() != "") || (event.which == 13)) {
|
||||||
|
me.items = me.get_items();
|
||||||
|
me.make_item_list();
|
||||||
|
}
|
||||||
|
}, 400);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.search_item_group = this.wrapper.find('.search-item-group');
|
this.search_item_group = this.wrapper.find('.search-item-group');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user