[Erp5-report] r32283 kazuhiko - /erp5/trunk/bt5/erp5_simulation/DocumentTemplateItem/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 5 11:04:17 CET 2010


Author: kazuhiko
Date: Fri Feb  5 11:04:16 2010
New Revision: 32283

URL: http://svn.erp5.org?rev=32283&view=rev
Log:
do not consider business_path's source or destination for payable movement.

Modified:
    erp5/trunk/bt5/erp5_simulation/DocumentTemplateItem/PaymentRule.py

Modified: erp5/trunk/bt5/erp5_simulation/DocumentTemplateItem/PaymentRule.py
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_simulation/DocumentTemplateItem/PaymentRule.py?rev=32283&r1=32282&r2=32283&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_simulation/DocumentTemplateItem/PaymentRule.py [utf8] (original)
+++ erp5/trunk/bt5/erp5_simulation/DocumentTemplateItem/PaymentRule.py [utf8] Fri Feb  5 11:04:16 2010
@@ -107,8 +107,9 @@
       # Payment Rule does not work with Business Path
       if business_path is None:
         continue
-      kw = self._getPropertyAndCategoryList(input_movement, business_path,
-                                            rule)
+      # Since we need to consider business_path only for bank movement,
+      # not for payable movement, we pass None as business_path here.
+      kw = self._getPropertyAndCategoryList(input_movement, None, rule)
       kw.update({'order':None, 'delivery':None})
       quantity = kw.pop('quantity', 0)
       efficiency = business_path.getEfficiency()




More information about the Erp5-report mailing list