Commit b76bd834 by Yvon Kerdoncuff

Merge branch '4880-error-qty-edition' into 'dev_cooperatic'

reception: fix bug putting a product to edition and validating without change

See merge request !233
parents 812d3b54 d90259bf
Pipeline #2869 failed with stage
in 1 minute 7 seconds
......@@ -1349,7 +1349,8 @@ function editProductInfo (productToEdit, value = null, batch = false) {
firstUpdate = (index == -1); //first update
if (productToEdit.product_qty != newValue) {
if (firstUpdate) {
// If no old_qty in productToEdit, product qty wasn't edited before
if (productToEdit.old_qty === undefined) {
productToEdit.old_qty = productToEdit.product_qty;
} else {
//if it is not the first update AND newValue is equal to the validation qty then the product is valid (qty not changed)
......
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