Re: taxTotal
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14899
interpreted = N
texte = >Well, I figured out all of my problems with the [subTotal] and [grandTotal]>and such, yet I'm still having a problem with the [taxTotal] I'm using the>formulas from the tearoom, and on my purchace.tmpl page, WebCat is>returning the value for [ShipTostate] and [taxRate] (ca & 8.25) yet is>showing [taxTotal] as 0.00, from reading the book, is seems that if WebCat>is returning these two values correctly that it should calculate it also?>>>RayRay,for me, things don't always work as expected. I also had a problem with[taxTotal] on my second store. I was following the Tearoom example and Imust not have had taxable set incorrectly. I came up with this workaround.I am not saying that this is the right way to do this. It is simply anotherway.Try this: substitute this $[format.2f][math][taxrate]*[subtotal]*.01[/math][/format] for [taxtotal]If webCat is returning the correct [taxrate] and your [subtotal] iscorrect, then this will work.Also you may wish to substitute a corresponding formula for [grandTotal] asI believe it relies on a correct [taxtotal] to get things right: $[format.2f][math][math][shippingtotal]+[subtotal][/math]+[math][taxrate]*[subtotal]*.01[/math][/math][/format]Ken or Grant can probably tell you exactly how to do it correctly, but thisshould work (and I'm pleased with myself for figuring it out!).Paul _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/Paul Uttermohlen, Internet Marketspace, Inc. \_\_\_\_ _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ _/_/_/ Business -
_\_\_\_\_\_\_\_\_\_\_ _/_/_/ Real Estate - _\_\_\_\_ _/_/_/Websites - Children _/ _\_\_\__/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Associated Messages, from the most recent to the oldest:
>Well, I figured out all of my problems with the [subTotal] and [grandTotal]>and such, yet I'm still having a problem with the [taxTotal] I'm using the>formulas from the tearoom, and on my purchace.tmpl page, WebCat is>returning the value for [ShipTostate] and [taxRate] (ca & 8.25) yet is>showing [taxTotal] as 0.00, from reading the book, is seems that if WebCat>is returning these two values correctly that it should calculate it also?>>>RayRay,for me, things don't always work as expected. I also had a problem with[taxTotal] on my second store. I was following the Tearoom example and Imust not have had taxable set incorrectly. I came up with this workaround.I am not saying that this is the right way to do this. It is simply anotherway.Try this: substitute this $[format.2f][math][taxrate]*[subtotal]*.01[/math][/format] for [taxtotal]If webCat is returning the correct [taxrate] and your [subtotal] iscorrect, then this will work.Also you may wish to substitute a corresponding formula for [grandTotal] asI believe it relies on a correct [taxtotal] to get things right: $[format.2f][math][math][shippingtotal]+[subtotal][/math]+[math][taxrate]*[subtotal]*.01[/math][/math][/format]Ken or Grant can probably tell you exactly how to do it correctly, but thisshould work (and I'm pleased with myself for figuring it out!).Paul _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/Paul Uttermohlen, Internet Marketspace, Inc. \_\_\_\_ _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ _/_/_/ Business - _\_\_\_\_\_\_\_\_\_\_ _/_/_/ Real Estate - _\_\_\_\_ _/_/_/Websites - Children _/ _\_\_\__/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Paul Uttermohlen
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
default value from Lookup (was Grant, please help me) (1997)
Linebreak as a delimiter in listwords? (2003)
Keeping text formatting (like hard returns) (2002)
eCommerce Idea Patented? (2002)
[WebDNA] [BULK] [middle] behavior (2020)
WebCat2 - [format thousands] (1997)
Car Database (2002)
ListFiles then delete by ModDate (2002)
[WebDNA] Correct returnraw syntax? (2011)
Lineitems [text*] (2004)
showcart is slow (1998)
Sort Order on a page search (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
InternetWeek E-Commerce article (1998)
Date comparison (I think) has bugs ... (1998)
Tried installing Windows beta with no success... (2000)
WebDNAReference (2000)
attn: smitmicro - cart limitation (2002)
Setting up shop (1997)
search vs lookup (1998)