Commit 76dabfee authored by Fabien Morin's avatar Fabien Morin

remove code. It could be nice to have many business_path with the same...

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.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27457 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2cdbe373
...@@ -181,15 +181,9 @@ class PaySheetTransaction(Invoice): ...@@ -181,15 +181,9 @@ class PaySheetTransaction(Invoice):
movement_list_trade_phase_dic[trade_phase].append(movement) movement_list_trade_phase_dic[trade_phase].append(movement)
for trade_phase in movement_list_trade_phase_dic.keys(): for trade_phase in movement_list_trade_phase_dic.keys():
builder_list = []
business_path_list = business_process.getPathValueList(trade_phase=\ business_path_list = business_process.getPathValueList(trade_phase=\
trade_phase) trade_phase)
if len(business_path_list) > 1: for business_path in business_path_list:
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]
builder_list = [portal.restrictedTraverse(url) for url in\ builder_list = [portal.restrictedTraverse(url) for url in\
business_path.getDeliveryBuilderList()] business_path.getDeliveryBuilderList()]
for builder in builder_list: for builder in builder_list:
......
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