You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Si Chen (JIRA)" <ji...@apache.org> on 2006/11/22 02:09:02 UTC

[jira] Created: (OFBIZ-490) UtilFormatOut to use default.currency.decimals

UtilFormatOut to use default.currency.decimals
----------------------------------------------

                 Key: OFBIZ-490
                 URL: http://issues.apache.org/jira/browse/OFBIZ-490
             Project: OFBiz (The Open for Business Project)
          Issue Type: Improvement
          Components: framework
            Reporter: Si Chen
            Priority: Minor


I looked through utilFormatOut.formatCurrency and the way that it is called from OfbizCurrencyTransform and the ModelFormField, it currently does not set a maximum digit.

I propose that we add a default.currency.decimals into general.properties and then modify UtilFormatOut.formatCurrency so that if this is set, then the default number of decimals is set from this property after the locale has been set.  (If it is set before the Locale it will not work.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OFBIZ-490) UtilFormatOut to use default.currency.decimals

Posted by "Daniel Kunkel (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-490?page=comments#action_12451840 ] 
            
Daniel Kunkel commented on OFBIZ-490:
-------------------------------------

It seems like the number of decimals is much more of a constant depending on the currency. Could that information be better set and stored with the currency data?


> UtilFormatOut to use default.currency.decimals
> ----------------------------------------------
>
>                 Key: OFBIZ-490
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-490
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Si Chen
>            Priority: Minor
>
> I looked through utilFormatOut.formatCurrency and the way that it is called from OfbizCurrencyTransform and the ModelFormField, it currently does not set a maximum digit.
> I propose that we add a default.currency.decimals into general.properties and then modify UtilFormatOut.formatCurrency so that if this is set, then the default number of decimals is set from this property after the locale has been set.  (If it is set before the Locale it will not work.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira