Commit 361830d6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix more 'undefined name', but still remains some.


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37060 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 46ac9720
...@@ -629,8 +629,9 @@ class BusinessProcess(Path, XMLObject): ...@@ -629,8 +629,9 @@ class BusinessProcess(Path, XMLObject):
API less uniform. API less uniform.
""" """
remaining_trade_phase_list = [] remaining_trade_phase_list = []
trade_state = business_link.getSuccessor()
for link in [x for x in self.objectValues(portal_type="Business Link") \ for link in [x for x in self.objectValues(portal_type="Business Link") \
if x.getPredecessorValue() == trade_state]: if x.getPredecessor() == trade_state]:
# XXX When no simulations related to link, what should link.isCompleted return? # XXX When no simulations related to link, what should link.isCompleted return?
# if True we don't have way to add remaining trade phases to new movement # if True we don't have way to add remaining trade phases to new movement
if not (link.getRelatedSimulationMovementValueList(explanation) and if not (link.getRelatedSimulationMovementValueList(explanation) 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