Currency Formatting/Rounding

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Currency Formatting/Rounding

masionas
HI Guys,

I have quite strange behaviour with the way currency is rouonded. Here is what I have in the properties:

1) .../common/config/general.properties
# -- the default currency to use for prices, etc
currency.uom.id.default=USD

# -- the default decimal format for currency
currency.decimal.format=##0.00


2) /apps/accounting/config/arithmetic.properties

# For setting decimal precision and rounding method of operations related to orders,
# such as shopping cart amounts and order amounts
order.decimals = 2
order.rounding = ROUND_HALF_UP


But when I display shopping cart items it shows more than two decimals. For example it shows $1546,123
instead of $1546,12.

What I am missing? Thank you in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Currency Formatting/Rounding

BJ Freeman
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ofbiz is currently going to a double to big decimal conversion
there should be some major changes with the branch is folded back in
suggest you monitor the ofbiz-dev and/or the commits ML for when that
will happen

masionas sent the following on 1/9/2009 7:46 AM:

> HI Guys,
>
> I have quite strange behaviour with the way currency is rouonded. Here is
> what I have in the properties:
>
> 1) .../common/config/general.properties
> # -- the default currency to use for prices, etc
> currency.uom.id.default=USD
>
> # -- the default decimal format for currency
> currency.decimal.format=##0.00
>
> 2) /apps/accounting/config/arithmetic.properties
>
> # For setting decimal precision and rounding method of operations related to
> orders,
> # such as shopping cart amounts and order amounts
> order.decimals = 2
> order.rounding = ROUND_HALF_UP
>
> But when I display shopping cart items it shows more than two decimals. For
> example it shows $1546,123
> instead of $1546,12.
>
> What I am missing? Thank you in advance.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJZ8IsrP3NbaWWqE4RApNrAJ9nJbxaLQxVCzplKF/NYkdYCNo2HACgnNFI
dLUdIEAN2Ix8x95A1zHUjfg=
=eLYR
-----END PGP SIGNATURE-----