Commit a3668896 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Xiaowu Zhang

Builder: Supply builder fix min stock to check only if movement are commings

parent c7fd9cc7
......@@ -453,6 +453,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
if not has_consumption_movement:
return []
from_date = date
# evaluate future inventory at date
future_inventory_to_date = portal.portal_simulation.getFutureInventory(
......@@ -504,7 +505,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
if start_date < supply.getStartDateRangeMin():
# As we are going to need to go further in time to check if new Movements are needed
# we need to keep inventory correct
future_inventory_to_date += quantity
#future_inventory_to_date += quantity
for date, total_inventory, quantity, portal_type in period_history_list:
future_inventory_to_date += quantity
continue
......
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