addition of another if statement to match eans with first 0
This commit is contained in:
parent
5d10aa4c72
commit
7ef211bbf7
@ -224,6 +224,9 @@ function checkEAN() {
|
||||
var eanval = $("#eaninput").val();
|
||||
if(eanval != "") {
|
||||
var eanval_item = $("#button_form tbody tr").filter(function() {
|
||||
if($(this).attr("rel") != eanval) {
|
||||
return $(this).attr("rel") == '0'+eanval;
|
||||
}
|
||||
return $(this).attr("rel") == eanval;
|
||||
});
|
||||
|
||||
@ -355,7 +358,7 @@ $(document).ready(function() {
|
||||
if(!(event.keyCode == 112 || event.keyCode == 113 || event.keyCode == 114 || event.keyCode == 115 || event.keyCode == 123)) {
|
||||
if (event.keyCode == 13) {
|
||||
$("#barcodeinput").val("");
|
||||
loadOrder(null, true);
|
||||
loadOrder(null, true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user