Make sure barcode box is emptied
This commit is contained in:
parent
c2af709fe6
commit
7f73715a16
@ -67,7 +67,6 @@ function findItem(q) {
|
||||
}
|
||||
}
|
||||
addItem(item['name'], code, price);
|
||||
$("#barcode").val("");
|
||||
}
|
||||
if (q == "") {
|
||||
return;
|
||||
@ -170,11 +169,13 @@ $("#pos-lines-box").on("keypress", ".item-qty,.item-price", function (e) {
|
||||
$("#barcode").on('keypress', function (e) {
|
||||
if (e.which === 13) {
|
||||
findItem($("#barcode").val());
|
||||
$("#barcode").val("");
|
||||
}
|
||||
});
|
||||
|
||||
$("#barcodebtn").on("click", function () {
|
||||
findItem($("#barcode").val());
|
||||
$("#barcode").val("");
|
||||
});
|
||||
|
||||
$("body").on("keypress", "input[type=money],input[type=number]", function (e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user