Commit 3c8bcc9b authored by Łukasz Nowak's avatar Łukasz Nowak

Also set quantity to 1.0 on Order and Delivery lines.

parent f762ffff
...@@ -56,6 +56,8 @@ if context.getSimulationState() == \'cancelled\':\n ...@@ -56,6 +56,8 @@ if context.getSimulationState() == \'cancelled\':\n
price = context.getPrice()\n price = context.getPrice()\n
if price != 0.0:\n if price != 0.0:\n
context.setPrice(0.0)\n context.setPrice(0.0)\n
if quantity != 1.0:\n
context.setQuantity(1.0)\n
context.getParentValue().Delivery_updateAppliedRule()\n context.getParentValue().Delivery_updateAppliedRule()\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -55,6 +55,8 @@ ...@@ -55,6 +55,8 @@
price = context.getPrice()\n price = context.getPrice()\n
if price != 0.0:\n if price != 0.0:\n
context.setPrice(0.0)\n context.setPrice(0.0)\n
if quantity != 1.0:\n
context.setQuantity(1.0)\n
context.getParentValue().Delivery_updateAppliedRule()\n context.getParentValue().Delivery_updateAppliedRule()\n
</string> </value> </string> </value>
</item> </item>
......
30 31
\ 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