Commit aae2a5bd by Yvon

4880 quick fix : when counting products, when user edits + validates qty of…

4880 quick fix : when counting products, when user edits + validates qty of product without changing it, imitate behavior of direct clic on validate button so that product is still considered not updated, which prevents bug #4880
parent 043e2a4b
Pipeline #2842 failed with stage
in 1 minute 21 seconds
......@@ -1367,8 +1367,14 @@ function editProductInfo (productToEdit, value = null, batch = false) {
productToEdit.package_qty = productToEdit.product_qty;
} else if (firstUpdate) {
// if the product is updated for the first time and productQty is equal to the newValue then the product is validated
isValid = true;
//If we came here, I think we just want to imitate the behavior of user clicking on Validate directly on the product instead of
//going further (https://redmine.coopdev.fr/issues/4880)
add_to_processed(productToEdit,true);
return true;
//OLD COMMENT AND CODE BELOW :
//if the product is updated for the first time and productQty is equal to the newValue then the product is validated
//isValid = true;
}
}
......
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