Commit b9a54b70 by Damien Moulard

ALC: dont ignore target amount if target coverage days set

parent 04f149b4
Pipeline #2411 passed with stage
in 1 minute 27 seconds
......@@ -344,7 +344,9 @@ function compute_products_coverage_qties() {
order_doc.coeff = coeff;
if (order_doc.coverage_days != null) {
compute_and_affect_product_supplier_quantities(coeff, order_doc.coverage_days);
} else if (order_doc.targeted_amount != null) {
}
if (order_doc.targeted_amount != null) {
const small_step = 0.1,
max_iter = 182; // Assume that no more than 1/2 year coverage is far enough
let go_on = 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