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
continue\n
for sm in other_rule.contentValues():\n
line = sm.getDeliveryValue()\n
\n
# case of trade model movement\n
if ar.getParentValue().getParentValue().getSpecialiseValue().getPortalType() == \'Trade Model Rule\':\n
tm_related_movement = ar.getParentValue().getParentValue().getParentValue()\n
line = tm_related_movement.getOrderValue()\n
if line is None:\n
line = tm_related_movement.getParentValue().getParentValue().getOrderValue()\n
line = tm_related_movement.getDeliveryValue()\n
\n
# in case of invoice rule (ie. starting from Invoice)\n
if line is None:\n
......
178
\ No newline at end of file
179
\ 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