|
|
Post Reply ![]() |
Author | |
wesonline ![]() Newbie ![]() ![]() Joined: August/25/04 Location: United States Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() 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%?
|
|
![]() |
|
Selahbooks ![]() Newbie ![]() Joined: March/17/04 Location: United States Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
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) %> |
|
![]() |
|
Selahbooks ![]() Newbie ![]() Joined: March/17/04 Location: United States Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
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 %> |
|
![]() |
|
wesonline ![]() Newbie ![]() ![]() Joined: August/25/04 Location: United States Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |