[Erp5-report] r27318 - /erp5/trunk/products/ERP5/Document/TradeCondition.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 1 17:35:12 CEST 2009


Author: fabien
Date: Mon Jun  1 17:35:10 2009
New Revision: 27318

URL: http://svn.erp5.org?rev=27318&view=rev
Log:
add movement_list parameter, in this way it's possible to pass a movement_list to use for calculation.

Modified:
    erp5/trunk/products/ERP5/Document/TradeCondition.py

Modified: erp5/trunk/products/ERP5/Document/TradeCondition.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TradeCondition.py?rev=27318&r1=27317&r2=27318&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] Mon Jun  1 17:35:10 2009
@@ -171,14 +171,15 @@
       trade_model_line_composed_list.sort(sortByIntIndex)
       return trade_model_line_composed_list
 
-    def getAggregatedAmountList(self, context, **kw):
+    def getAggregatedAmountList(self, context, movement_list=None, **kw):
       result = AggregatedAmountList()
 
       trade_model_line_composed_list = \
           self.getTradeModelLineComposedList(context)
 
       need_to_run = 1
-      movement_list = []
+      if movement_list is None:
+        movement_list = []
       while need_to_run:
         need_to_run = 0
         for model_line in trade_model_line_composed_list:




More information about the Erp5-report mailing list