Commit 12390d0d authored by Sebastien Robin's avatar Sebastien Robin

removed deprecated methods about target


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3954 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3fb3ccd0
...@@ -53,22 +53,6 @@ class TargetSolver: ...@@ -53,22 +53,6 @@ class TargetSolver:
self.__dict__.update(kw) self.__dict__.update(kw)
self.previous_target = {} self.previous_target = {}
def savePreviousTarget(self, movement):
from Products.ERP5.Tool.SimulationTool import Target
# Saves ONCE ONLY the previous target of a given movement
uid = movement.getUid()
if not self.previous_target.has_key(uid):
self.previous_target[uid] = Target(
target_quantity = movement.getTargetQuantity(),
target_start_date = movement.getTargetStartDate(),
target_stop_date = movement.getTargetStopDate())
def getPreviousTarget(self, movement):
# Returns the previous target for a given movement
# This is useful for the first movement solved for example
self.savePreviousTarget(movement)
return self.previous_target[movement.getUid()]
def solve(self, simulation_movement): def solve(self, simulation_movement):
""" """
Solve a simulation movement Solve a simulation movement
......
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