Commit 5147b28a by Cédric Le Ninivin

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

1 parent 12839fda
......@@ -526,8 +526,10 @@ class BuilderMixin(XMLObject, Amount, Predicate):
min_stock_value = getCorrectSupplyParameter(selected_supply, supply, 'getMinOrderQuantity') / getDefaultQuantityUnitFlowQuantityUnitConversionRatio(selected_supply, supply)
factor = getCorrectSupplyParameter(selected_supply, supply, 'getMinFlow')
min_stock_value = original_min_stock_value
factor = original_factor
# Fallback to current supply values
min_stock_value = supply.getMinOrderQuantity() / default_quantity_unit_flow_quantity_u
factor = supply.getMinFlow()
period_history_list = []
if next_period_history_list and\
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!