Commit 39cc880f by François C.

Merge branch '3869-alc-amount' into 'dev_cooperatic'

ALC: dont ignore target amount if target coverage days set

See merge request !202
parents 096918a8 b9a54b70
Pipeline #2417 passed with stage
in 1 minute 23 seconds
...@@ -344,7 +344,9 @@ function compute_products_coverage_qties() { ...@@ -344,7 +344,9 @@ function compute_products_coverage_qties() {
order_doc.coeff = coeff; order_doc.coeff = coeff;
if (order_doc.coverage_days != null) { if (order_doc.coverage_days != null) {
compute_and_affect_product_supplier_quantities(coeff, order_doc.coverage_days); 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, const small_step = 0.1,
max_iter = 182; // Assume that no more than 1/2 year coverage is far enough max_iter = 182; // Assume that no more than 1/2 year coverage is far enough
let go_on = true, 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