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

builder mixin: Supply calculation use default supply value even if not stock definition is found

parent 1c60b172
...@@ -537,8 +537,9 @@ class BuilderMixin(XMLObject, Amount, Predicate): ...@@ -537,8 +537,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
min_stock_value = getCorrectSupplyParameter(selected_supply, supply, 'getMinOrderQuantity') / getDefaultQuantityUnitFlowQuantityUnitConversionRatio(selected_supply, supply) min_stock_value = getCorrectSupplyParameter(selected_supply, supply, 'getMinOrderQuantity') / getDefaultQuantityUnitFlowQuantityUnitConversionRatio(selected_supply, supply)
factor = getCorrectSupplyParameter(selected_supply, supply, 'getMinFlow') factor = getCorrectSupplyParameter(selected_supply, supply, 'getMinFlow')
else: else:
min_stock_value = original_min_stock_value # Fallback to current supply values
factor = original_factor min_stock_value = supply.getMinOrderQuantity() / default_quantity_unit_flow_quantity_unit_conversion_ratio
factor = supply.getMinFlow()
period_history_list = [] period_history_list = []
if next_period_history_list and\ if next_period_history_list and\
......
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