Commit e4022f79 authored by Łukasz Nowak's avatar Łukasz Nowak

Improve detection.

parent 68498059
...@@ -55,6 +55,16 @@ ...@@ -55,6 +55,16 @@
if not movement.SimulationMovement_testCommonRule(rule):\n if not movement.SimulationMovement_testCommonRule(rule):\n
return False\n return False\n
\n \n
parent = movement.getParentValue()\n
if parent.getPortalType() != \'Applied Rule\':\n
return False\n
\n
parent_rule = parent.getSpecialiseValue()\n
if parent_rule.getPortalType() not in (\'Invoice Root Simulation Rule\',\n
\'Invoice Simulation Rule\',\n
\'Trade Model Simulation Rule\'):\n
return False\n
\n
delivery_movement = movement.getDeliveryValue()\n delivery_movement = movement.getDeliveryValue()\n
if delivery_movement is not None and (\n if delivery_movement is not None and (\n
delivery_movement.getPortalType() not in movement.getPortalInvoiceMovementTypeList()\n delivery_movement.getPortalType() not in movement.getPortalInvoiceMovementTypeList()\n
......
63 64
\ 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