[Erp5-report] r27457 - /erp5/trunk/products/ERP5/Document/PaySheetTransaction.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 9 11:18:32 CEST 2009


Author: fabien
Date: Tue Jun  9 11:18:31 2009
New Revision: 27457

URL: http://svn.erp5.org?rev=27457&view=rev
Log:
remove code. It could be nice to have many business_path with the same trade_phase. This means that many lines could be resulting of one model line. This behaviour can be usefull.

Modified:
    erp5/trunk/products/ERP5/Document/PaySheetTransaction.py

Modified: erp5/trunk/products/ERP5/Document/PaySheetTransaction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/PaySheetTransaction.py?rev=27457&r1=27456&r2=27457&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/PaySheetTransaction.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/PaySheetTransaction.py [utf8] Tue Jun  9 11:18:31 2009
@@ -181,15 +181,9 @@
         movement_list_trade_phase_dic[trade_phase].append(movement)
 
       for trade_phase in movement_list_trade_phase_dic.keys():
-        builder_list = []
         business_path_list = business_process.getPathValueList(trade_phase=\
             trade_phase)
-        if len(business_path_list) > 1:
-          raise NotImplementedError, 'For now, payroll can not support more '\
-              'than one business_path with same trade_phase. '\
-              '%s have same trade_phase' % repr(business_path_list)
-        if len(business_path_list) == 1:
-          business_path = business_path_list[0]
+        for business_path in business_path_list:
           builder_list = [portal.restrictedTraverse(url) for url in\
                           business_path.getDeliveryBuilderList()]
           for builder in builder_list:




More information about the Erp5-report mailing list