[
https://issues.apache.org/jira/browse/OFBIZ-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Le Roux reassigned OFBIZ-1007:
--------------------------------------
Assignee: Jacques Le Roux
> Set decimal places to show for ofbizCurrencyTransform
> -----------------------------------------------------
>
> Key: OFBIZ-1007
> URL: https://issues.apache.org/jira/browse/OFBIZ-1007
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: Release Branch 4.0
> Reporter: Leon Torres
> Assignee: Jacques Le Roux
> Priority: Minor
> Attachments: currency-decimal-places.patch
>
>
> Some users may wish to have 3 or 4 decimal places of precision in currency
> amounts. This is easily configurable with the fieldtype XML files.
> The problem is that the <@ofbizCurrencyTransform> macro will truncate the
> numbers because the decimal places is determined from the Locale object, and
> there is no way to tell it that the decimal places should be 3 or 4 or
> whatever.
> Additionally, these users often have the desire to right pad the numbers with
> zeroes. For instance, an amount of $3.04 should be displayed as $3.0400 for
> a 4 decimal place requirement. Currently the UtilFormatOut.formatCurrency()
> methods have no way to support this right-filling of zeros in this manner.
> I have implemented a fairly elegant way of solving both related issues with
> minimal impact.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.