Results 1 to 3 of 3

Monthly Sales & Tax Report

This is a discussion on Monthly Sales & Tax Report within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; The "Taxes Collected" column is a list of popup links and for some reason this was broken. I have only ...

      
  1. #1
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Post Monthly Sales & Tax Report

    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'];br / if ($sel_month0) echo "&day=" . $sales['row_day'];br / if ($status'') echo "&status=" . $status;br / echo "','detail',config='height=200,width=400,scrollbar s=1, resizable=1')" title="Show detail">";

    to

    if ($sel_month0) $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); br / echo "','detail',config='height=200,width=400,scrollbar s=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

    More...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  2. #2
    New Member
    Join Date
    Apr 2009
    Posts
    7
    Rep Power
    0


    Default Re: Monthly Sales & Tax Report

    Michael,

    The report works great unless I change the order status on the pull down mene. When I do this, I get redirected to the login page every time. Is anyone else having this problem????

    Sergio

  3. #3
    New Member
    Join Date
    Apr 2009
    Posts
    7
    Rep Power
    0


    Default Re: Monthly Sales & Tax Report

    Never mind Michael. This only happens on the test site but not on production so I must have something configured incorrectly on test.

Similar Threads

  1. Monthly Sales Report
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-15-2009, 06:00 PM
  2. Monthly Sales & Tax Report
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-31-2008, 02:12 AM
  3. Monthly Sales & Tax Report
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-25-2008, 04:11 AM
  4. Monthly Sales & Tax Report
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-29-2007, 02:31 PM
  5. Monthly Sales Report
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-19-2007, 05:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •