Tax not calculated correctly with shipping taxed and taxrate .0925

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I did see a post but it only applied to earlier version. Where can I correct this rounding problem? I need my tax to be .0925 or 9.25 % and have it calculate properly. It is most always a penny off. Please help. We are trying to go live.

Thjank you eddymurphy!

Also in my case I added the tax class to Tennessee as a separate Tax item.

I also changed the math.round() function to 3 instaed of 2 for all tax items and in the getprice calculator:


And then as SKILTZ says:
Chage the Calculate Price Method in TaxManager.cs from:



      protected static decimal CalculatePrice(decimal price, decimal percent, bool increase)
        {
            decimal result = decimal.Zero;
            if (increase)
            {
                result = price * (1 + percent / 100);
            }
            else
            {
                result = price - (price) / (100 + percent) * percent;
            }
            return result;
        }



to:

     protected static decimal CalculatePrice(decimal price, decimal percent, bool increase)
        {
            decimal result = decimal.Zero;
            if (increase)
            {
                result = price * (1 + percent / 100);
            }
            else
            {
                result = price - Math.Round(price * (percent / 100), 2);
            }
            return result;
        }





Jim Frye
13 years ago
First create seperate Shipping Tax Class in

Configuration> Tax > Tax Classes

Then Got to

Configuration> Tax> Tax Providers

select the tax provider , usually Fixed Rate

And in the tax configuration tab set the shipping tax to 9.25%

Now, in the tax settings

check shipping is taxable. and select the shipping tax class
13 years ago
Thanks! eddymurphy and Skiltz
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.