Contributions

Reports (Category Index)
Search: 

Monthly Sales & Tax Report

This basic admin report provides a summary by month of the following totals for the history of the store:

gross income
product sales (exempt + taxable)
product sales exempt
product sales taxable
sales tax collected
shipping/handling charges
low order fees

Data for report are extacted from orders with Shipped status, and basis for sales tax is assumed to be store zone.

Expand All / Collapse All

Show detail for Taxes Collected popup 5 May 2009

The "Taxes Collected" column is a list of popup links and for some reason this was broken. I have only changed a few lines to repair this.

Around line 518 you will see
// make this a link to the detail popup if nonzero
I changed the lines
echo "<a href="#" onClick="window.open('" . $_SERVER['PHP_SELF'] . "?&show=ot_tax&year=" . $sales['row_year'] . "&month=" . $sales['i_month'];
if ($sel_month<>0) echo "&day=" . $sales['row_day'];
if ($status<>'') echo "&status=" . $status;
echo "','detail',config='height=200,width=400,scrollbars=1, resizable=1')" title="Show detail">";

to

if ($sel_month<>0) $taxpopup = "&day=" . $sales['row_day'];
if ($status<>'') $taxpopup .= "&status=" . $status;
echo "<a href="#" onClick="window.open('" . tep_href_link(basename($PHP_SELF), "&show=ot_tax&year=" . $sales['row_year'] . "&month=" . $sales['i_month'] . $taxpopup);
echo "','detail',config='height=200,width=400,scrollbars=1, resizable=1')" title="Show detail">";

Not much of a change but it makes it work.

This file is also the latest one listed here with my change.
/admin/stats_monthly_sales.php

Updated Report Column Names 31 May 2008
Monthly Sales & Tax Report V2.3.1 16 Jan 2008
Monthly Sales & Tax Report V2.3 29 Nov 2007
french added 1 Dec 2006
Monthly Sales & Tax V2.2 24 Dec 2005
Monthly Sales & Tax 2.1.1c (incl. commission) 27 Sep 2005
Updated with the version v 2.1.1b 17 Jul 2005
SQL Bug in V2.1.1 ( detailled vue per day is wrong) Bruno Blanes 23 Feb 2005
Monthly Sales & Tax Report v 2.1.1 Fritz Clapp 14 Apr 2004
Monthly Sales & Tax Report v 2.1 Fritz Clapp 11 Apr 2004
Monthly Sales & Tax Report v 2.0.1 Fritz Clapp 7 Apr 2004
Monthly Sales & Tax Report v 2.0 Fritz Clapp 7 Apr 2004
Monthly Sales & Tax Report 1.55a for MS2 Donald Harriman 15 Aug 2003
Monthly Sales & Tax 1.55x Fritz Clapp 26 Jun 2003
Monthly Sales & Tax Report 1.55 Fritz Clapp 26 Jun 2003
Monthly Sales & Tax Report 1.54x Fritz Clapp 10 Jun 2003
Monthly Sales & Tax Report 1.54 Fritz Clapp 10 Jun 2003
Monthly Sales & Tax Report 1.53 Fritz Clapp 5 Jun 2003
Monthly Sales & Tax Report 1.5 Fritz Clapp 4 Jan 2003
Monthly Sales & Tax Report 1.4a Fritz Clapp 8 Dec 2002
Monthly Sales & Tax Report 1.4 Fritz Clapp 8 Dec 2002
Monthly Sales & Tax Report 1.3 Fritz Clapp 8 Dec 2002
Monthly Sales/Tax Report 1.1 Fritz Clapp 2 Dec 2002
Monthly Sales & Tax Report 1.0 Fritz Clapp 1 Dec 2002

Note: Contributions are used at own risk.