Commit 6ff3ea0d authored by Fabien Morin's avatar Fabien Morin

comments were bad, fix them. (thanks to jerome for the review)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28026 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c077bb3
...@@ -220,14 +220,14 @@ class TradeCondition(Path, Transformation, XMLMatrix): ...@@ -220,14 +220,14 @@ class TradeCondition(Path, Transformation, XMLMatrix):
trade_model_line_composed_list = \ trade_model_line_composed_list = \
self.getTradeModelLineComposedList(context) self.getTradeModelLineComposedList(context)
# initialise run then rerun only once, as trade_model_line_composed_list # trade_model_line_composed_list is sorted in good way to have
# is sorted in good way to have simple algorithm # simple algorithm
for model_line in trade_model_line_composed_list: for model_line in trade_model_line_composed_list:
result.extend(model_line.getAggregatedAmountList(context, result.extend(model_line.getAggregatedAmountList(context,
movement_list=movement_list, movement_list=movement_list,
current_aggregated_amount_list=result, current_aggregated_amount_list=result,
**kw)) **kw))
movement_list = result # apply model again on generated movements movement_list = result
# remove movement that should not be created # remove movement that should not be created
final_movement_list = [] final_movement_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