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
...@@ -473,7 +473,14 @@ class BuilderMixin(XMLObject, Amount, Predicate): ...@@ -473,7 +473,14 @@ class BuilderMixin(XMLObject, Amount, Predicate):
to_date=limit_date_list[0], to_date=limit_date_list[0],
resource_uid=resource_value.getUid(), resource_uid=resource_value.getUid(),
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()
......
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