Commit d45e0dd1 authored by Kevin Deldycke's avatar Kevin Deldycke

Mark as deprecaded. Advise developpers to use Base_getRoundValue /...

Mark as deprecaded. Advise developpers to use Base_getRoundValue / Base_getPreferredPrecision instead.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6390 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3bb7cfc7
......@@ -75,6 +75,9 @@ Needs reflexion / reimplementation for example for the \'precision\' \n
parameter, which is related to the currency.\n
"""\n
\n
context.log( "ERP5Accounting_FormatMonetaryValue is DEPRECATED."\n
, \'It break naming convention and will be removed, please use Base_getRoundValue (sometimes in combination with Base_getPreferredPrecision) instead.\')\n
\n
# XXX copy & pasted code ...\n
value = str(value)\n
if \'.\' in value :\n
......@@ -143,8 +146,9 @@ return formatted_value\n
<string>value</string>
<string>nbsp</string>
<string>precision</string>
<string>str</string>
<string>_getattr_</string>
<string>context</string>
<string>str</string>
<string>_getiter_</string>
<string>integer</string>
<string>reminder</string>
......
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