taxtotal question

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41664
interpreted = N
texte = I have a discount system setup for a shopping cart.It works by adding an item to the shoppingcart file with a negative ammount. ie: -7.00The subtotal displays the correct value.The tax however, is computed based on the ammount prior to the discount.I thought that since the negative number affected the subtotal, the tax will be computed based on the subtotal.Where is my logic error?How do I work arround so that the tax is calculated based on the discounted price (the subtotal)ART ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: taxtotal question (John Peacock 2002)
  2. taxtotal question (Arturo Vargas 2002)
I have a discount system setup for a shopping cart.It works by adding an item to the shoppingcart file with a negative ammount. ie: -7.00The subtotal displays the correct value.The tax however, is computed based on the ammount prior to the discount.I thought that since the negative number affected the subtotal, the tax will be computed based on the subtotal.Where is my logic error?How do I work arround so that the tax is calculated based on the discounted price (the subtotal)ART ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Arturo Vargas

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:

[WebDNA] ImageMagick code (2013) encrypt but with normal characters for result? (2005) Exclude by date - multiple (1997) Date Question (2002) [WebDNA] Convertchars Weirdness (2014) Digest Version (2000) PCS Frames (1997) [WebDNA] Problem with Sendmail (2012) Strange intermittent WebDNA problems Workaround (2008) lineIndex help... Please (1998) ShippingCosts (1998) web delivery (1997) getchars broken? (1997) Performance Issue (2000) Really need a answer (1999) Nested tags count question (1997) Netscape v. IE (1997) search context w shownext works! (1997) User/pass with tcpconnect (2000) Another question (1997)