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

Set price and quantity unconditionally.

parent 05c59ccf
......@@ -54,10 +54,8 @@
if context.getSimulationState() == \'cancelled\':\n
return\n
price = context.getPrice()\n
if price != 0.0:\n
context.setPrice(0.0)\n
if quantity != 1.0:\n
context.setQuantity(1.0)\n
context.setPrice(0.0)\n
context.setQuantity(1.0)\n
context.getParentValue().Delivery_updateAppliedRule()\n
</string> </value>
</item>
......
......@@ -53,10 +53,8 @@
<value> <string>if context.getPortalType() != \'Sale Order Line\':\n
raise ValueError(\'%s is not sale order line\' % context.getPath())\n
price = context.getPrice()\n
if price != 0.0:\n
context.setPrice(0.0)\n
if quantity != 1.0:\n
context.setQuantity(1.0)\n
context.setPrice(0.0)\n
context.setQuantity(1.0)\n
context.getParentValue().Delivery_updateAppliedRule()\n
</string> </value>
</item>
......
33
\ No newline at end of file
34
\ 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