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):
self._solveDeliveryGroupDivergence(packing_list, 'start_date',
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):
kw = {'delivery_group_listbox':
{property:{'choice':target_url}}}
......@@ -1278,11 +1288,11 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
stepSetContainerFullQuantity \
stepTic \
stepCheckPackingListIsPacked \
stepModifySimulationLineStartDate \
stepModifySimulationLineStopDate \
stepTic \
stepCheckPackingListIsDiverged \
stepCheckPackingListIsDivergent \
stepUnifyStartDateWithPrevision \
stepUnifyStopDateWithPrevision \
stepTic \
'
# 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