Commit 06a0772d authored by Aurel's avatar Aurel

add comment about the use of new amount generator


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@36904 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d91efda
...@@ -199,10 +199,14 @@ class PaySheetTransaction(Invoice): ...@@ -199,10 +199,14 @@ class PaySheetTransaction(Invoice):
if not movement_list_trade_phase_dic.has_key(trade_phase): if not movement_list_trade_phase_dic.has_key(trade_phase):
movement_list_trade_phase_dic[trade_phase] = [] movement_list_trade_phase_dic[trade_phase] = []
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():
business_link_list = business_process.getPathValueList(trade_phase=\ business_link_list = business_process.getPathValueList(trade_phase=\
trade_phase) trade_phase)
# XXX-Aurel
# must convert amount into simulation movement
# by calling method BusinessProcess.getTradePhaseMovementList
# for now delivery builder will fail because it calls setDeliveryValue
# which does not exists on amount
for business_link in business_link_list: for business_link in business_link_list:
builder_list = [portal.restrictedTraverse(url) for url in\ builder_list = [portal.restrictedTraverse(url) for url in\
business_link.getDeliveryBuilderList()] business_link.getDeliveryBuilderList()]
......
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