![]() |
|
|
|
#1 |
|
I have a product table with productID and UnitCost. I want to calculate sales tax if sales based on instate or state were requires sales tax. In shopping cart I have a Product Quantity and Unitcost per product. I do subtotal on each product and at the end I add up all and do the total.
Should I calculate sales tax per subtotal or should I calculate on total. Although, I will caluculate tax after I collect Billing and Shipping Info which has state infornation. So When user fills shopping cart I will have just total but on few page later after collecting Billing and Shipping Info I will calculate tax. Also I like to store total tax or per item base tax in oder table so when User want to see old order I can reassemble again. =?Utf-8?B?cHBhdGVs?= |
|
|
|
|
#2 |
|
Posts: n/a
|
Unless you have a specific reason to calculate it on a per-item basis (e.g.
different items have different tax rates) You'r want to do it based on the total. Otherwise you're introducing rounding errors. If you DO have different items that have different tax rates (this does happen sometimes) then you'll want to do seperate subtotals for each class of item and then calculate the taxes. "ppatel" <> wrote in message news:0DD79953-56DC-477E-9B5A-... > I have a product table with productID and UnitCost. I want to calculate sales tax if sales based on instate or state were requires sales tax. In shopping cart I have a Product Quantity and Unitcost per product. I do subtotal on each product and at the end I add up all and do the total. > > Should I calculate sales tax per subtotal or should I calculate on total. > > Although, I will caluculate tax after I collect Billing and Shipping Info which has state infornation. So When user fills shopping cart I will have just total but on few page later after collecting Billing and Shipping Info I will calculate tax. > > Also I like to store total tax or per item base tax in oder table so when User want to see old order I can reassemble again. David Jessee |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer Security Information and What You Can Do To Keep Your SystemSafe! | Ann.Anderson.group.com@gmail.com | A+ Certification | 0 | 12-06-2007 01:55 AM |
| QUOTES FROM EBAY STORES | misirens@hotmail.com | DVD Video | 1 | 06-19-2006 10:21 PM |
| High Def Brings High Sales Hopes. | Allan | DVD Video | 59 | 08-08-2005 07:03 PM |
| As growth slows, Hollywood faces a DVD standoff. | Allan | DVD Video | 0 | 07-11-2005 02:10 PM |
| Re: 7. The truth about our creator. .7 | john smith | DVD Video | 2 | 07-25-2003 03:54 AM |