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,13 +171,14 @@ class TradeCondition(Path, Transformation): ...@@ -171,13 +171,14 @@ 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
if movement_list is None:
movement_list = [] movement_list = []
while need_to_run: while need_to_run:
need_to_run = 0 need_to_run = 0
......
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