Commit fe680808 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Titouan Soulard

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

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