diff --git a/product/ERP5/TargetSolver/ProfitAndLoss.py b/product/ERP5/TargetSolver/ProfitAndLoss.py
index 0e92cd4d0a3f7315068e70ccef60ffc553bbe6d9..00ad1fb31fb1e28c1690e1699b074a7b42a22871 100755
--- a/product/ERP5/TargetSolver/ProfitAndLoss.py
+++ b/product/ERP5/TargetSolver/ProfitAndLoss.py
@@ -40,7 +40,7 @@ class ProfitAndLoss(CopyToTarget):
     on the parent applied rule.
   """
 
-  def solve(self, movement, new_target=None):
+  def solveMovement(self, movement, new_target=None):
     """
       Movement difference as a profit (ie. a quantity coming from nowhere)
       Accumulate into delivered movement
@@ -51,9 +51,7 @@ class ProfitAndLoss(CopyToTarget):
     if delivery_line_quantity is not None:
       target_quantity = delivery_line_quantity * movement.getDeliveryRatio()
       added_quantity = movement.getQuantity() - target_quantity
-      #movement.setProfitQuantity(added_quantity)
       movement.edit(profit_quantity=added_quantity)
-      #movement.immediateReindexObject()
     delivery = movement.getDeliveryValue()
     if delivery is not None:
       delivery.activate(after_path_and_method_id=(movement.getPath(), ['immediateReindexObject', 'recursiveImmediateReindexObject'])).edit()