ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James McGill <james.mcg...@ableengineering.com>
Subject Re: purchasse order and round in calcul
Date Mon, 07 Mar 2011 18:21:13 GMT
On Sun, Mar 6, 2011 at 5:47 PM, zhiyongcui <zhufu360@gmail.com> wrote:
> I changed order.decimals  of my arithmetic.properties to 6. but it doesn't do
> anything.The product price of my ShoppingCart still shows to 2 decimal.But I
> need it be 5.
> How could I do?

You may also need to set tax.rounding and tax.decimals, or do what I
did and search for places where
these are used, and also look for every multiplication and division,
and be specific about your rounding rules everywhere.

Also, you may have to ALTER TABLE in your database if you are not
recreating the entity model.

And there are places in FTL that will call a formatter based on your
currency, so even when the value is stored with greater precision,
there are places where it will be displayed with two decimal places.

We have many inventory items with unit costs of much less than one
cent, and I made quite a few changes in ShoppingCart and Order to
accommodate this.  We do not ever use any currency besides USD, and do
not use any of the tax calculations.  I imagine that my changes would
be very broken if we did.

James McGill
Phoenix AZ

View raw message