Commit 3c8991d4 by Damien Moulard

add check in stock movements

parent fd149d3d
Pipeline #2287 passed with stage
in 1 minute 25 seconds
...@@ -778,6 +778,9 @@ $(document).ready(function() { ...@@ -778,6 +778,9 @@ $(document).ready(function() {
} else if (barcode.length == 12 && barcode.indexOf('0') !== 0) { } else if (barcode.length == 12 && barcode.indexOf('0') !== 0) {
// User may use a scanner which remove leading 0 // User may use a scanner which remove leading 0
barcode = '0' + barcode; barcode = '0' + barcode;
} else if (barcode.length >= 8) {
// For EAN8
barcode = barcode.substring(barcode.length-8);
} else { } else {
//manually submitted after correction //manually submitted after correction
barcode = barcode_input.val(); barcode = barcode_input.val();
......
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