Commit 90175dd8 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

builder: consider min Stock/min flow are always 0 on the Supplier Supply

parent c39e78a0
...@@ -520,9 +520,9 @@ class BuilderMixin(XMLObject, Amount, Predicate): ...@@ -520,9 +520,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
if len(stock_definition_supply_list): if len(stock_definition_supply_list):
return stock_definition_supply_list[0] return stock_definition_supply_list[0]
return default_supply return default_supply
# Consider min stock and min flow are always 0 on supplier supply
original_min_stock_value = supply.getMinOrderQuantity() / default_quantity_unit_flow_quantity_unit_conversion_ratio original_min_stock_value = 0 #supply.getMinOrderQuantity() / default_quantity_unit_flow_quantity_unit_conversion_ratio
original_factor = supply.getMinFlow() original_factor = 0 #supply.getMinFlow()
original_order_quantity_unit_value = supply.getOrderQuantityUnitValue() original_order_quantity_unit_value = supply.getOrderQuantityUnitValue()
# Create a movement per period # Create a movement per period
for period_start_date in limit_date_list: for period_start_date in limit_date_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