Commit 12aa92a7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix SolverProcess.buildSolverDecisionList().

* we need to include divergence testers for quantity.
* we don't need solver decisions for testers that are not divergent.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31370 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc1eabc4
...@@ -174,7 +174,9 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -174,7 +174,9 @@ class SolverProcess(XMLObject, ActiveProcess):
for movement in movement_list: for movement in movement_list:
for simulation_movement in movement.getDeliveryRelatedValueList(): for simulation_movement in movement.getDeliveryRelatedValueList():
simulation_movemet_url = simulation_movement.getRelativeUrl() simulation_movemet_url = simulation_movement.getRelativeUrl()
for divergence_tester in simulation_movement.getParentValue().getSpecialiseValue()._getDivergenceTesterList(): for divergence_tester in simulation_movement.getParentValue().getSpecialiseValue()._getDivergenceTesterList(exclude_quantity=False):
if divergence_tester.compare(simulation_movement, movement):
continue
application_list = map(lambda x:x.getRelativeUrl(), application_list = map(lambda x:x.getRelativeUrl(),
self.getSolverDecisionApplicationValueList(movement, divergence_tester)) self.getSolverDecisionApplicationValueList(movement, divergence_tester))
application_list.sort() application_list.sort()
......
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