You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Todd Burdeinei <tb...@gmail.com> on 2008/12/31 08:16:44 UTC
prices calculating to three decimal places for USD
Hello everyone,
Is there a way to tell ofbiz to only calculate to two decimal places?
I found isoCode is what is used to format the price, but I don't know where
to set this variable to USD. Also looked through nabble and found the actual
function- but not where I actually set its value.
Any help is appriciated
Thank you
Todd
--
Todd Burdeinei
Web Developer
Burdeinei Corp
702-259-3273 office / fax number
702-372-9920 cell
Todd@burdeinei.com
Re: prices calculating to three decimal places for USD
Posted by Bilgin Ibryam <bi...@iguanait.com>.
Hi Todd,
in arithmetic.properties you specify the number of deciamls to
calculate. This rounding will apply for all currencies though. But you
can do currency aware formatting while visualizing the amount in
UtilFormatOut.java. But UtilFormatOut formating will be done only for
visualizing, ie the real amounts in DB will remain formatter using
arithmetic.properties
Bilgin
On Dec 31, 2008, at 9:16 AM, Todd Burdeinei wrote:
> Hello everyone,
> Is there a way to tell ofbiz to only calculate to two decimal places?
> I found isoCode is what is used to format the price, but I don't
> know where
> to set this variable to USD. Also looked through nabble and found
> the actual
> function- but not where I actually set its value.
>
> Any help is appriciated
> Thank you
> Todd
>
> --
> Todd Burdeinei
> Web Developer
> Burdeinei Corp
> 702-259-3273 office / fax number
> 702-372-9920 cell
> Todd@burdeinei.com
Re: prices calculating to three decimal places for USD
Posted by Jacques Le Roux <ja...@les7arts.com>.
> Hello everyone,
> Is there a way to tell ofbiz to only calculate to two decimal places?
> I found isoCode is what is used to format the price, but I don't know where
> to set this variable to USD. Also looked through nabble and found the actual
> function- but not where I actually set its value.
Not sure it's a great help but there are already 3 Jira issues open about such problems
https://issues.apache.org/jira/browse/OFBIZ-1599
Any help is appriciated ;o)
Jacques
> Any help is appriciated
> Thank you
> Todd
>
> --
> Todd Burdeinei
> Web Developer
> Burdeinei Corp
> 702-259-3273 office / fax number
> 702-372-9920 cell
> Todd@burdeinei.com
>
Re: prices calculating to three decimal places for USD
Posted by Raj Saini <ra...@gmail.com>.
Not sure if it is going to help. You can set the rounding in the
{ofbiz.home}/applications/accounting/config/arithmetic.properties file.
Thanks,
Raj
Todd Burdeinei wrote:
> Hello everyone,
> Is there a way to tell ofbiz to only calculate to two decimal places?
> I found isoCode is what is used to format the price, but I don't know where
> to set this variable to USD. Also looked through nabble and found the actual
> function- but not where I actually set its value.
>
> Any help is appriciated
> Thank you
> Todd
>
>