Commit 878e4352 authored by Fabien Morin's avatar Fabien Morin

add movement_list parameter, in this way it's possible to pass a movement_list...

add movement_list parameter, in this way it's possible to pass a movement_list to use for calculation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27318 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba7ceb01
...@@ -171,14 +171,15 @@ class TradeCondition(Path, Transformation): ...@@ -171,14 +171,15 @@ class TradeCondition(Path, Transformation):
trade_model_line_composed_list.sort(sortByIntIndex) trade_model_line_composed_list.sort(sortByIntIndex)
return trade_model_line_composed_list return trade_model_line_composed_list
def getAggregatedAmountList(self, context, **kw): def getAggregatedAmountList(self, context, movement_list=None, **kw):
result = AggregatedAmountList() result = AggregatedAmountList()
trade_model_line_composed_list = \ trade_model_line_composed_list = \
self.getTradeModelLineComposedList(context) self.getTradeModelLineComposedList(context)
need_to_run = 1 need_to_run = 1
movement_list = [] if movement_list is None:
movement_list = []
while need_to_run: while need_to_run:
need_to_run = 0 need_to_run = 0
for model_line in trade_model_line_composed_list: for model_line in trade_model_line_composed_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