Commit 773e13fc authored by Łukasz Nowak's avatar Łukasz Nowak

Do nothing on cancelled deliveries.

parent 5fe522ba
......@@ -51,6 +51,8 @@
<item>
<key> <string>_body</string> </key>
<value> <string>assert( context.getPortalType() in context.getPortalDeliveryMovementTypeList() )\n
if context.getSimulationState() == \'cancelled\':\n
return\n
price = context.getPrice()\n
if price != 0.0:\n
context.setPrice(0.0)\n
......
29
\ No newline at end of file
30
\ 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