Commit b8b8f13b by François C.

Merge branch 'dev_principale' into 'master'

Field vide lors du scan d'un produit déjà scanné

See merge request !107
parents da6ff995 050e6fc3
Pipeline #1727 passed with stage
in 1 minute 47 seconds
......@@ -91,6 +91,7 @@ function select_product_from_bc(barcode) {
$.each(list_processed, function(i, e) {
if (e.product_id[0] == scannedProduct.data[barcodes['keys']['id']]) {
foundProduct.data = JSON.parse(JSON.stringify(e));
foundProduct.data.product_qty = null;
foundProduct.place = 'processed';
}
});
......@@ -941,6 +942,7 @@ function editProductInfo (productToEdit, value = null, batch = false) {
// If 'value' parameter not set, get value from edition input
if (value == null) {
newValue = parseFloat(document.getElementById('edition_input').value.replace(',', '.'));
newValue = newValue.isFinite() ? newValue : 0;
}
$.each(list_processed, function(i, e) {
......
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