Commit df17b5ad authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

builder: Supply Builder only order if there is a need or safety stock ratio defined

parent c8c6fb94
......@@ -527,7 +527,8 @@ class BuilderMixin(XMLObject, Amount, Predicate):
quantity = 0
if future_inventory_to_date < min_inventory: # SKU
# Only need to order if there are cosumption next week or if the min stock ratio is enabled
if (week_consumption!= 0 or factor) and future_inventory_to_date < min_inventory:
quantity = min_inventory - future_inventory_to_date
ordered_quantity, ordered_unit, effective_date, start_date, delivery_date, quantity = minimalQuantity(quantity, period_start_date)
......
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