Commit 0a5659cc authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

buildermixin: Include missing movement list

parent 24ce3a48
......@@ -475,6 +475,13 @@ class BuilderMixin(XMLObject, Amount, Predicate):
node_uid=supply.getDestinationUid(),
)
# We update history_list to include movements from the initial inventory date
history_list = resource_value.Resource_getInventoryHistoryList(
from_date=limit_date_list[0],
to_date=history_list[0][0],
node_uid=supply.getDestinationUid()
) + history_list
min_stock_value = supply.getMinOrderQuantity() / default_quantity_unit_flow_quantity_unit_conversion_ratio
factor = supply.getMinFlow()
next_period_history_list = []
......
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