Commit b3fe8e88 authored by Jérome Perrin's avatar Jérome Perrin

store currency precision in the REQUEST, for editable fields



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13331 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ffa1e053
......@@ -96,6 +96,11 @@ from_date = request.get(\'from_date\', None)\n
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 @@ return [ ReportSection(\n
<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>
......
212
\ No newline at end of file
213
\ No newline at end of file
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