addition of another if statement to match eans with first 0

This commit is contained in:
Marion Muszynski 2017-04-18 17:01:00 +02:00
parent 5d10aa4c72
commit 7ef211bbf7

View File

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