prices calculating to three decimal places for USD

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

prices calculating to three decimal places for USD

Toddnick
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
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: prices calculating to three decimal places for USD

Jacques Le Roux
Administrator
> 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
> [hidden email]
>
Reply | Threaded
Open this post in threaded view
|

Re: prices calculating to three decimal places for USD

rajsaini
In reply to this post by Toddnick
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
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: prices calculating to three decimal places for USD

Bilgin Ibryam
In reply to this post by Toddnick
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
> [hidden email]