[Erp5-report] r13331 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 12 10:29:08 CET 2007


Author: jerome
Date: Mon Mar 12 10:29:06 2007
New Revision: 13331

URL: http://svn.erp5.org?rev=13331&view=rev
Log:
store currency precision in the REQUEST, for editable fields


Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml?rev=13331&r1=13330&r2=13331&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountStatementReportSectionList.xml Mon Mar 12 10:29:06 2007
@@ -96,6 +96,11 @@
 omit_grouping_reference = request.get(\'omit_grouping_reference\', 0)\n
 parent_portal_type = request.get(\'portal_type\')\n
 \n
+# Also get the currency, to know the precision\n
+currency = context.Base_getCurrencyForSection(request[\'section_category\'])\n
+precision = context.account_module.getQuantityPrecisionFromResource(currency)\n
+# we set the precision in request, for formatting on editable fields\n
+request.set(\'precision\', precision)\n
 \n
 params = dict(at_date=at_date,\n
               section_uid=section_uid,\n
@@ -194,6 +199,8 @@
                             <string>from_date</string>
                             <string>omit_grouping_reference</string>
                             <string>parent_portal_type</string>
+                            <string>currency</string>
+                            <string>precision</string>
                             <string>dict</string>
                             <string>params</string>
                             <string>_write_</string>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=13331&r1=13330&r2=13331&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Mon Mar 12 10:29:06 2007
@@ -1,1 +1,1 @@
-212
+213




More information about the Erp5-report mailing list