[Erp5-report] r35411 yo - in /erp5/trunk/bt5/erp5_trade: SkinTemplateItem/portal_skins/erp5...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 18 09:09:10 CEST 2010


Author: yo
Date: Tue May 18 09:09:08 2010
New Revision: 35411

URL: http://svn.erp5.org?rev=35411&view=rev
Log:
2010-05-18 yo
* Have Base_getSpecialisedAggregatedAmountList to pass the parameter rounding to getAggregatedAmountList. It defaults to True, as this method is used for UI, and rounding should be applied in the UI in most cases.

Modified:
    erp5/trunk/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Base_getSpecialisedAggregatedAmountList.xml
    erp5/trunk/bt5/erp5_trade/bt/change_log
    erp5/trunk/bt5/erp5_trade/bt/revision

Modified: erp5/trunk/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Base_getSpecialisedAggregatedAmountList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Base_getSpecialisedAggregatedAmountList.xml?rev=35411&r1=35410&r2=35411&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Base_getSpecialisedAggregatedAmountList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Base_getSpecialisedAggregatedAmountList.xml [utf8] Tue May 18 09:09:08 2010
@@ -56,7 +56,8 @@
             <value> <string>specialise = context.getSpecialiseValue(portal_type=(\'Purchase Trade Condition\',\'Sale Trade Condition\'))\n
 \n
 if specialise is not None:\n
-  return specialise.getAggregatedAmountList(context)\n
+  rounding = kwargs.get(\'rounding\', True)\n
+  return specialise.getAggregatedAmountList(context, rounding=rounding)\n
 \n
 return []\n
 </string> </value>
@@ -101,6 +102,8 @@
                             <string>context</string>
                             <string>specialise</string>
                             <string>None</string>
+                            <string>True</string>
+                            <string>rounding</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_trade/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_trade/bt/change_log?rev=35411&r1=35410&r2=35411&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_trade/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_trade/bt/change_log [utf8] Tue May 18 09:09:08 2010
@@ -1,3 +1,6 @@
+2010-05-18 yo
+* Have Base_getSpecialisedAggregatedAmountList to pass the parameter rounding to getAggregatedAmountList. It defaults to True, as this method is used for UI, and rounding should be applied in the UI in most cases.
+
 2010-05-17 yo
 * Inventory Line and Inventory Cell are not invoice movements.
 

Modified: erp5/trunk/bt5/erp5_trade/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_trade/bt/revision?rev=35411&r1=35410&r2=35411&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_trade/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_trade/bt/revision [utf8] Tue May 18 09:09:08 2010
@@ -1,1 +1,1 @@
-923
+924




More information about the Erp5-report mailing list