Commit f1aec158 authored by Aurel's avatar Aurel

configuration of rule change so use stop_date for this test


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37470 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent efd3b2a7
...@@ -552,16 +552,16 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -552,16 +552,16 @@ class TestPackingListMixin(TestOrderMixin):
simulation_movement.getDeliveryValue().edit(quantity=self.default_quantity-1) simulation_movement.getDeliveryValue().edit(quantity=self.default_quantity-1)
simulation_movement.expand() simulation_movement.expand()
def stepModifySimulationLineStartDate(self,sequence=None, sequence_list=None, **kw): def stepModifySimulationLineStopDate(self,sequence=None, sequence_list=None, **kw):
""" """
Check if simulation movement are disconnected Modify simulation line stop date
""" """
applied_rule = sequence.get('applied_rule') applied_rule = sequence.get('applied_rule')
simulation_movement_list = applied_rule.objectValues() simulation_movement_list = applied_rule.objectValues()
resource_list = sequence.get('resource_list') resource_list = sequence.get('resource_list')
for simulation_movement in simulation_movement_list: for simulation_movement in simulation_movement_list:
simulation_movement.recordProperty('start_date') simulation_movement.recordProperty('stop_date')
simulation_movement.edit(start_date=self.datetime+15) simulation_movement.edit(stop_date=self.datetime+15)
simulation_movement.expand() simulation_movement.expand()
def stepModifyOneSimulationLineStartDate(self,sequence=None, sequence_list=None, **kw): def stepModifyOneSimulationLineStartDate(self,sequence=None, sequence_list=None, **kw):
...@@ -622,6 +622,14 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -622,6 +622,14 @@ class TestPackingListMixin(TestOrderMixin):
self._solveDeliveryGroupDivergence(packing_list, 'start_date', self._solveDeliveryGroupDivergence(packing_list, 'start_date',
packing_list.getRelativeUrl()) packing_list.getRelativeUrl())
def stepUnifyStopDateWithDecision(self,sequence=None, sequence_list=None, **kw):
"""
Solve divergence on stop date using unify
"""
packing_list = sequence.get('packing_list')
self._solveDeliveryGroupDivergence(packing_list, 'stop_date',
packing_list.getRelativeUrl())
def stepUnifyStartDateWithPrevision(self,sequence=None, sequence_list=None, **kw): def stepUnifyStartDateWithPrevision(self,sequence=None, sequence_list=None, **kw):
""" """
Check if simulation movement are disconnected Check if simulation movement are disconnected
...@@ -1156,7 +1164,7 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1156,7 +1164,7 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
stepCreateNotVariatedResource \ stepCreateNotVariatedResource \
stepModifySimulationLineQuantityForMergedLine \ stepModifySimulationLineQuantityForMergedLine \
stepModifyOneSimulationLineResource \ stepModifyOneSimulationLineResource \
stepModifySimulationLineStartDate \ stepModifySimulationLineStopDate \
stepTic \ stepTic \
stepCheckPackingListIsDiverged \ stepCheckPackingListIsDiverged \
stepAcceptDecisionQuantity \ stepAcceptDecisionQuantity \
...@@ -1165,7 +1173,7 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1165,7 +1173,7 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
stepAcceptDecisionResource \ stepAcceptDecisionResource \
stepTic \ stepTic \
stepCheckPackingListIsDiverged \ stepCheckPackingListIsDiverged \
stepUnifyStartDateWithDecision \ stepUnifyStopDateWithDecision \
stepTic \ stepTic \
stepCheckPackingListIsNotDivergent \ stepCheckPackingListIsNotDivergent \
stepCheckPackingListIsSolved \ stepCheckPackingListIsSolved \
......
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