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