From 71de63af0a7b881ece026e33cefbca8b80bbc848 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Tue, 13 Jul 2010 14:28:04 +0000
Subject: [PATCH] Fixed typos in places not carefully reviewed

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37090 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessProcess.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/BusinessProcess.py b/product/ERP5/Document/BusinessProcess.py
index d3db747ae1..2ebe966b13 100644
--- a/product/ERP5/Document/BusinessProcess.py
+++ b/product/ERP5/Document/BusinessProcess.py
@@ -523,7 +523,7 @@ class BusinessProcess(Path, XMLObject):
     trade_state -- a Trade State category
     """
     for business_link in self.getBusinessLinkValueList(successor=trade_state):
-      if not closure_process.isBusinessLinkCompleted(explanation, business_link):
+      if not self.isBusinessLinkCompleted(explanation, business_link):
         return False
     return True      
 
@@ -606,7 +606,7 @@ class BusinessProcess(Path, XMLObject):
     return True
 
   security.declareProtected(Permissions.AccessContentsInformation, 'getRemainingTradePhaseList')
-  def getRemainingTradePhaseList(self, business_link, trade_phase_list=None):
+  def getRemainingTradePhaseList(self, explanation, business_link, trade_phase_list=None):
     """Returns the list of remaining trade phases which to be achieved
     as part of a business process. This list is calculated by analysing 
     the graph of business link and trade states, starting from a given
@@ -614,6 +614,9 @@ class BusinessProcess(Path, XMLObject):
     method is useful mostly for production and MRP to manage a distributed
     supply and production chain.
 
+    explanation -- an Order, Order Line, Delivery or Delivery Line or
+                   Applied Rule which implicitely defines a simulation subtree
+
     business_link -- a Business Link document
 
     trade_phase_list -- if provided, the result is filtered by it after
-- 
2.30.9