Forums / General Questions / Sales Tax Reports?

Sales Tax Reports?

Views: 1,055

Results 1 to 6 of 6
14 Apr 2011, 9:41 PM
#1
kstew923 avatar

kstew923

New Zenner

Join Date:
Mar 2011
Posts:
25
Plugin Contributions:
0

Sales Tax Reports?

Is there a way to run a report that will show the total amount of sales tax collect over a specific time frame.

I need to know how to do this for accounting purposes.

Also is there a way to run a report for total sales (not just the list of sales that appears in the report section, but something that you can print or export out of the zen cart system)

Any help is appreciated.

Kristi

14 Apr 2011, 10:26 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,857
Plugin Contributions:
18

Re: Sales Tax Reports?

SELECT
Sum(orders.order_tax)
FROM
orders
WHERE
orders.order_tax > 0 AND
orders.date_purchased >= '2010-01-01 00:00:00' AND
orders.date_purchased < '2011-01-01 00:00:00'

NOTE: This assumes that you have no table prefixes. If you have a prefix like zen_, then all instances of orders.**** would become zen_orders.****

Yes, the orders.order_tax > 0 is a little bit of overkill, but..........

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

14 Apr 2011, 11:02 PM
#3
kstew923 avatar

kstew923

New Zenner

Join Date:
Mar 2011
Posts:
25
Plugin Contributions:
0

Re: Sales Tax Reports?

This may be a dumb question but is this script that I run against the site or is there some way to access this information through the admin?

Sorry but I am more design orientied other than the scripting side of things.

Thank You for your response. :unsure:

14 Apr 2011, 11:25 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,857
Plugin Contributions:
18

Re: Sales Tax Reports?

This is a query that needs to be run against your database and it won't work in the admin. That's for other than queries.

If you have phpMyAdmin (usually in the database section of cpanel), open it, click on your database, click on the Query tab, paste the query in the "SQL query on database #######" box, click on Submit Query in the bottom-right corner of that box.

Your result will be in between the two Show buttons under "Sum(orders.order_tax)

Again, be sure to check if you use a prefix.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

14 Apr 2011, 11:53 PM
#5
alivewjesus avatar

alivewjesus

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

Re: Sales Tax Reports?

Check out this add on

Using Zen Cart 1.5.1
Many mods
www.crosbysgifts.com

15 Apr 2011, 2:17 AM
#6
kstew923 avatar

kstew923

New Zenner

Join Date:
Mar 2011
Posts:
25
Plugin Contributions:
0

Re: Sales Tax Reports?

alivewjesus:

Check out this add on

This is awesome! Exactly what I was in need of... it is nice to just click on monthly report and there it is.

Do you know of any add-on that allows a daily export of orders to a CSV file?