Commit 04866a15 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: Always set price on the sale packing list

Restore the previous behaviour to set 0.0
parent 900d2790
......@@ -47,6 +47,8 @@ for movement in movement_list:
if movement.getResource() == 'service_module/slapos_instance_subscription':
# reduce tax from there directly
temp_movement.edit(price=movement.getPrice(0.0)/1.2)
else:
temp_movement.edit(price=0.0)
temp_movement_list.append(temp_movement)
id += 1
......
......@@ -1336,7 +1336,7 @@ class TestSlapOSAggregatedDeliveryBuilder(SlapOSTestCaseMixin):
built_update_line.getResource())
self.assertEqual(1.0, built_subscription_line.getQuantity())
self.assertAlmostEquals(0.836, built_subscription_line.getPrice(), 3)
self.assertAlmostEquals(0.0, built_subscription_line.getPrice(), 3)
self.assertEqual(subscription_line.getResource(),
built_subscription_line.getResource())
......
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