Commit b9a11bd7 by Yvon Kerdoncuff

fix quantity update bug occuring in reception app at price step (when changing…

fix quantity update bug occuring in reception app at price step (when changing qty of product added at quantity step) by setting product_qty_package = 1
parent 369da024
Pipeline #4160 canceled with stage
...@@ -1325,6 +1325,7 @@ function editProductInfo (productToEdit, value = null, batch = false) { ...@@ -1325,6 +1325,7 @@ function editProductInfo (productToEdit, value = null, batch = false) {
orders[productToEdit.id_po]["previous_steps_data"]["False"]["updated_products"].push(productToEdit); orders[productToEdit.id_po]["previous_steps_data"]["False"]["updated_products"].push(productToEdit);
} else { } else {
productToEdit.product_qty = newValue; productToEdit.product_qty = newValue;
productToEdit.product_qty_package = 1;
productToEdit.package_qty = productToEdit.product_qty; productToEdit.package_qty = productToEdit.product_qty;
// Product qty has been updated before, update first step data // Product qty has been updated before, update first step data
......
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