[ https://issues.apache.org/jira/browse/OFBIZ-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754640#action_12754640 ]
Jacques Le Roux commented on OFBIZ-1007: ---------------------------------------- FYI : this is handled differently in OFBiz, see for instance OFBIZ-937 > 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 > Fix For: SVN trunk > > 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.