Commit 01df4d84 by François C.

Ajout de message informatif si le code-barre soumis n'est pas valide

parent edd0e0df
Pipeline #2250 passed with stage
in 1 minute 27 seconds
...@@ -158,6 +158,9 @@ function select_product_from_bc(barcode) { ...@@ -158,6 +158,9 @@ function select_product_from_bc(barcode) {
qty = scannedProduct.qty; qty = scannedProduct.qty;
} }
} }
} else {
alert("Le code-barre " + barcode + " n'est pas reconnu comme un EAN13 valide.'");
return -1;
} }
if (editing_item === null) { if (editing_item === null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment