Commit 9dc44b1b authored by Łukasz Nowak's avatar Łukasz Nowak

- use delivery on simulation movement to find corresponding delivery

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26834 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ae3cfd4
...@@ -71,12 +71,11 @@ for movement in movement_list:\n ...@@ -71,12 +71,11 @@ for movement in movement_list:\n
continue\n continue\n
for sm in other_rule.contentValues():\n for sm in other_rule.contentValues():\n
line = sm.getDeliveryValue()\n line = sm.getDeliveryValue()\n
\n
# case of trade model movement\n # case of trade model movement\n
if ar.getParentValue().getParentValue().getSpecialiseValue().getPortalType() == \'Trade Model Rule\':\n if ar.getParentValue().getParentValue().getSpecialiseValue().getPortalType() == \'Trade Model Rule\':\n
tm_related_movement = ar.getParentValue().getParentValue().getParentValue()\n tm_related_movement = ar.getParentValue().getParentValue().getParentValue()\n
line = tm_related_movement.getOrderValue()\n line = tm_related_movement.getDeliveryValue()\n
if line is None:\n
line = tm_related_movement.getParentValue().getParentValue().getOrderValue()\n
\n \n
# in case of invoice rule (ie. starting from Invoice)\n # in case of invoice rule (ie. starting from Invoice)\n
if line is None:\n if line is None:\n
......
178 179
\ No newline at end of file \ No newline at end of file
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