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

Movements are delivered early.

Builders are called globally, so deliveries are appearing earlier.
parent b590542d
......@@ -143,10 +143,12 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
self.assertEqual(expected_start_date, simulation_movement.getStartDate())
self.assertEqual(expected_stop_date, simulation_movement.getStopDate())
# not delivered yet
self.assertEqual(None, simulation_movement.getDelivery())
# delivered already
self.assertNotEqual(None, simulation_movement.getDelivery())
self.assertEqual('Sale Packing List Line',
simulation_movement.getDeliveryValue().getPortalType())
# packing list shall be buildable
self.assertTrue(simulation_movement.isBuildable())
self.assertFalse(simulation_movement.isBuildable())
# fetch invoice level simulation
applied_rule_invoice_list = \
......
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