You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Scott Gray (JIRA)" <ji...@apache.org> on 2009/09/06 05:09:57 UTC
[jira] Updated: (OFBIZ-2757) Ofbiz currency rounding with 0 decimal
[ https://issues.apache.org/jira/browse/OFBIZ-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Gray updated OFBIZ-2757:
------------------------------
Attachment: OFBIZ-2757.patch
Hi Eric
Could you please try the attached patch and see if it also works? I've replaced the -1 with null since -1 also has a purpose when being passed into formatCurrency (to use locale's default rounding)
Thanks
Scott
@Jacques, Eric's patch solved the problem by allowing 0 to pass through to formatCurrency where currently 0 is switched to 10 decimal places (i.e. no rounding) first
> Ofbiz currency rounding with 0 decimal
> --------------------------------------
>
> Key: OFBIZ-2757
> URL: https://issues.apache.org/jira/browse/OFBIZ-2757
> Project: OFBiz
> Issue Type: Improvement
> Components: framework, specialpurpose/ecommerce
> Affects Versions: SVN trunk
> Environment: Linux Debian, trunk 796250
> Reporter: Eric DE MAULDE
> Assignee: Scott Gray
> Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: OFBIZ-2757.patch, ofbizCurrencyRounding.patch
>
>
> the macro ofbizCurrency doesn't implement rounding with no decimal.
> We can't display a price $29 with any decimal, just $29.0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.