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

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 16 15:47:56 CEST 2009


Author: luke
Date: Tue Jun 16 15:47:50 2009
New Revision: 27611

URL: http://svn.erp5.org?rev=27611&view=rev
Log:
 - allow to have optional movement_list in arguments and support it
 - formatting
 - typo

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=27611&r1=27610&r2=27611&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] Tue Jun 16 15:47:50 2009
@@ -81,14 +81,14 @@
 
     security.declareProtected(Permissions.AccessContentsInformation,
                               'updateAggregatedAmountList')
-    def updateAggregatedAmountList(self, context, **kw):
+    def updateAggregatedAmountList(self, context, movement_list=None, rounding=None, **kw):
       existing_movement_list = context.getMovementList()
       aggregated_amount_list = self.getAggregatedAmountList(context=context,
-          **kw)
+          movement_list=movement_list, **kw)
       modified_resource_list = []
       normal_use_list = self.getPortalObject().portal_preferences\
               .getPreferredNormalResourceUseCategoryList()
-      # check if the existing movements are in aggregated movments
+      # check if the existing movements are in aggregated movements
       movement_to_delete_list = []
       movement_to_add_list = []
       for movement in existing_movement_list:




More information about the Erp5-report mailing list