VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Steffen.D. on May 31, 2017, 19:05:22 PM

Title: SOLVED Precission of tax_amount in order item
Post by: Steffen.D. on May 31, 2017, 19:05:22 PM
The precission of product tax amount in order item has a rounded value.
Example:
Order a product for 3.5 without tax. The tax amount is stored as 0.25 but the right value is 0.245
If the quantity of this product is not 1 than calculated tax sum is wrong too.
Title: Re: Precission of tax_amount in order item
Post by: AH on May 31, 2017, 21:32:20 PM
What are your tax settings
What are you rounding settings

More information is needed

VM calculates taxes correctly based on the settings configured.
Title: Re: Precission of tax_amount in order item
Post by: Steffen.D. on June 02, 2017, 15:25:31 PM
Thanks for your tip.

I've looked for the rounding settings in Price Configuration and there I set the option "Round only display".
Now it works correctly. The prices are stored in database with more precision.

Regards, Steffen.
Title: Re: Precission of tax_amount in order item
Post by: AH on June 03, 2017, 11:19:00 AM
Thanks for the update.

I am glad you found the configuration :-)