Commit af4bb8cc authored by Aurel's avatar Aurel

use stop_date as rules changed


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37474 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6dcb51f
...@@ -640,6 +640,16 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -640,6 +640,16 @@ class TestPackingListMixin(TestOrderMixin):
self._solveDeliveryGroupDivergence(packing_list, 'start_date', self._solveDeliveryGroupDivergence(packing_list, 'start_date',
simulation_movement_list[-1].getRelativeUrl()) simulation_movement_list[-1].getRelativeUrl())
def stepUnifyStopDateWithPrevision(self,sequence=None, sequence_list=None, **kw):
"""
Solve divergence on stop date using unify
"""
packing_list = sequence.get('packing_list')
applied_rule = sequence.get('applied_rule')
simulation_movement_list = applied_rule.objectValues()
self._solveDeliveryGroupDivergence(packing_list, 'stop_date',
simulation_movement_list[-1].getRelativeUrl())
def _solveDeliveryGroupDivergence(self, obj, property, target_url): def _solveDeliveryGroupDivergence(self, obj, property, target_url):
kw = {'delivery_group_listbox': kw = {'delivery_group_listbox':
{property:{'choice':target_url}}} {property:{'choice':target_url}}}
...@@ -1278,11 +1288,11 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1278,11 +1288,11 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
stepSetContainerFullQuantity \ stepSetContainerFullQuantity \
stepTic \ stepTic \
stepCheckPackingListIsPacked \ stepCheckPackingListIsPacked \
stepModifySimulationLineStartDate \ stepModifySimulationLineStopDate \
stepTic \ stepTic \
stepCheckPackingListIsDiverged \ stepCheckPackingListIsDiverged \
stepCheckPackingListIsDivergent \ stepCheckPackingListIsDivergent \
stepUnifyStartDateWithPrevision \ stepUnifyStopDateWithPrevision \
stepTic \ stepTic \
' '
# XXX Check if there is a new packing list created # XXX Check if there is a new packing list created
......
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