Commit 8a87ff1a authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

buildermixin: Include missing movement list

parent 5b23ce20
...@@ -464,6 +464,13 @@ class BuilderMixin(XMLObject, Amount, Predicate): ...@@ -464,6 +464,13 @@ class BuilderMixin(XMLObject, Amount, Predicate):
node_uid=supply.getDestinationUid(), 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 min_stock_value = supply.getMinOrderQuantity() / default_quantity_unit_flow_quantity_unit_conversion_ratio
factor = supply.getMinFlow() factor = supply.getMinFlow()
next_period_history_list = [] 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