Commit a0a1e75b authored by Jean-Paul Smets's avatar Jean-Paul Smets

Target was not imported


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1184 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84fe3960
...@@ -55,12 +55,13 @@ class TargetSolver: ...@@ -55,12 +55,13 @@ class TargetSolver:
self.previous_target = {} self.previous_target = {}
def savePreviousTarget(self, movement): def savePreviousTarget(self, movement):
from Products.ERP5.Tool.SimulationTool import Target
# Saves ONCE ONLY the previous target of a given movement # Saves ONCE ONLY the previous target of a given movement
uid = movement.getUid() uid = movement.getUid()
if not self.previous_target.has_key(uid): if not self.previous_target.has_key(uid):
self.previous_target[uid] = Target(target_quantity = movement.getTargetQuantity(), self.previous_target[uid] = Target(target_quantity = movement.getTargetQuantity(),
target_start_date = movement.getTargetStartDate(), target_start_date = movement.getTargetStartDate(),
target_stop_date = movement.getTargetStopDate()) target_stop_date = movement.getTargetStopDate())
def getPreviousTarget(self, movement): def getPreviousTarget(self, movement):
# Returns the previous target for a given movement # Returns the previous target for a given 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