Commit e0124ece authored by Jean-Paul Smets's avatar Jean-Paul Smets

Use business_link instead of business_path

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37497 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77361269
...@@ -413,12 +413,12 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated, ...@@ -413,12 +413,12 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated,
simulation_movement_list = self.getDeliveryRelatedValueList( simulation_movement_list = self.getDeliveryRelatedValueList(
portal_type="Simulation Movement") portal_type="Simulation Movement")
business_path = simulation_movement_list[0].getCausalityValue() business_link = simulation_movement_list[0].getCausalityValue()
delivery = self.getExplanationValue() delivery = self.getExplanationValue()
delivery_portal_type = delivery.getPortalType() delivery_portal_type = delivery.getPortalType()
delivery_line_portal_type = self.getPortalType() delivery_line_portal_type = self.getPortalType()
# we need to find only one matching delivery builder # we need to find only one matching delivery builder
for delivery_builder in business_path.getDeliveryBuilderValueList(): for delivery_builder in business_link.getDeliveryBuilderValueList():
if delivery_builder.getDeliveryPortalType() == \ if delivery_builder.getDeliveryPortalType() == \
delivery_portal_type and \ delivery_portal_type and \
delivery_builder.getDeliveryLinePortalType() == \ delivery_builder.getDeliveryLinePortalType() == \
......
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