Commit 46ac9720 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix typos : business_link -> trade_model_path.


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37059 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a01c2962
......@@ -197,7 +197,7 @@ class BusinessProcess(Path, XMLObject):
elif delay_mode == 'max':
delay = trade_model_path.getMaxDelay()
else:
delay = (business_link.getMaxDelay() + trade_model_path.getMinDelay()) / 2.0
delay = (trade_model_path.getMaxDelay() + trade_model_path.getMinDelay()) / 2.0
stop_date = start_date + delay
return start_date, stop_date
......@@ -744,7 +744,7 @@ class BusinessProcess(Path, XMLObject):
# and specifying units
if trade_model_path.getQuantity():
property_dict['quantity'] = trade_model_path.getQuantity()
elif business_link.getEfficiency():
elif trade_model_path.getEfficiency():
property_dict['quantity'] = amount.getQuantity() *\
trade_model_path.getEfficiency()
else:
......
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