Forum Home Forum Home > Legacy Products > SalesCart Standard / PRO / SQL
  New Posts New Posts RSS Feed - Confirm2 Tax Rate Rounding
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedConfirm2 Tax Rate Rounding

 Post Reply Post Reply
Author
Message
wesonline View Drop Down
Newbie
Newbie
Avatar

Joined: August/25/04
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote wesonline Quote  Post ReplyReply Direct Link To This Post Topic: Confirm2 Tax Rate Rounding
    Posted: November/17/05 at 11:19am
In Confirm2.asp at the very bottom of the page in the GRAND SUMMARY OF CHARGES the REGULAR TAX RATE displays as 8.299999%. In the online order system I entered my state tax rate as 0.083. How can I round the displayed tax rate to 8.30%?
Back to Top
Selahbooks View Drop Down
Newbie
Newbie
Avatar

Joined: March/17/04
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Selahbooks Quote  Post ReplyReply Direct Link To This Post Posted: November/17/05 at 3:09pm
I had the same problem in the SalesCart NET version although it was fixed in the next release. I used the math.round function as a workaround to correctly display the tax rate.
In confirm2.asp where the Tax Rate is displayed try the following:

<% =math.round((TaxRate(2) * 100),2) %>
Back to Top
Selahbooks View Drop Down
Newbie
Newbie
Avatar

Joined: March/17/04
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Selahbooks Quote  Post ReplyReply Direct Link To This Post Posted: November/17/05 at 4:50pm
Just realized that the above works with ASP.NET but will cause an error in classic ASP.
Another option is to try:

<%= int((TaxRate(2) + .0005) * 1000)/10 %>
Back to Top
wesonline View Drop Down
Newbie
Newbie
Avatar

Joined: August/25/04
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote wesonline Quote  Post ReplyReply Direct Link To This Post Posted: November/21/05 at 11:12am
Mike,

Thanks for the guidance. I have PRO and with your suggestions I found that the fix was the following:

<%= TaxRate(2) * 1000 / 10 %>

I ran a couple of dummy sales and it seems to be working.

Thanks agiain.

WES
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.04
Copyright ©2001-2015 Web Wiz Ltd.

Copyright 2015 by ComCity® LLC and SalesCart™.  All Rights Reserved