Commit 2ae6c79d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix start_date to be used in stepUnifyStartDateWithPrevision.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31776 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 229073ec
...@@ -377,6 +377,9 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): ...@@ -377,6 +377,9 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
Check if simulation movement are disconnected Check if simulation movement are disconnected
""" """
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
applied_rule = sequence.get('applied_rule')
simulation_line_list = applied_rule.objectValues()
start_date = simulation_line_list[-1].getStartDate()
solver_tool = self.portal.portal_solvers solver_tool = self.portal.portal_solvers
solver_process = solver_tool.newSolverProcess(packing_list) solver_process = solver_tool.newSolverProcess(packing_list)
for start_date_solver_decision in filter( for start_date_solver_decision in filter(
...@@ -385,7 +388,7 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): ...@@ -385,7 +388,7 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
# use StartDate Replacement Solver. # use StartDate Replacement Solver.
start_date_solver_decision.setSolverValue(self.portal.portal_types['Start Date Replacement Solver']) start_date_solver_decision.setSolverValue(self.portal.portal_types['Start Date Replacement Solver'])
# configure for Quantity Split Solver. # configure for Quantity Split Solver.
kw = {'value':packing_list.contentValues()[-1].getDeliveryRelatedValue().getStartDate()} kw = {'value':start_date}
start_date_solver_decision.updateConfiguration(**kw) start_date_solver_decision.updateConfiguration(**kw)
solver_process.buildTargetSolverList() solver_process.buildTargetSolverList()
solver_process.solve() solver_process.solve()
......
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