Results 1 to 10 of 883

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Posts
    253
    Plugin Contributions
    0

    Default Re: Sales report 2.0

    @carlvt88 $36.32 included a $3.00 tip. But that isn't an issue as this happens with or without the tip being involved.

    I guess what I'm not following is in order confirmation it looks as though includes/classes/order.php that saves the order and generates the emailed receipt saves everything to table_order_totals But the SR does not use that instead it uses table_orders as shown in admin/includes/classes/sales_report.php. It looks at each ordered product and then recalculates the subtotals. However it appears to be missing something.

  2. #2
    Join Date
    Oct 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: Sales report 2.0

    Thanks for this module; it has helped me with my reporting needs quite a bit and saved me from running SQL against the db. Here's a bug report and a request:

    v1.5 original (no upgrade)
    When exporting the report as a CSV, it appears to drop the "Goods Tax" column header. (I just need to add one space to the right in the header row to bring it in-line as a workaround.) I tested it on Chrome and IE and it seems to be consistent. I searched this thread to see if anyone else has reported it and didn't find anything, so sorry if this is a known issue.

    Also it would be nice to have a way to omit specific order statuses, such as Cancelled from being returned, similar to the way you can choose to omit a payment method.

    Regards,

    Aaron

  3. #3
    Join Date
    Sep 2012
    Posts
    253
    Plugin Contributions
    0

    Default Re: Sales report 2.0

    I don't get any canceled orders returned. For some reason all deleted or orders with a $0.00 total are skipped.

    Also this report does not match the emailed receipt on a consistent basis. Usually the report is off $15-20 for every 30 orders.

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Sales report 2.0

    Anyone having issues with the "Last Year" option displaying THIS YEAR (2014) and NOT 2013??
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Sales report 2.0

    Quote Originally Posted by DivaVocals View Post
    Anyone having issues with the "Last Year" option displaying THIS YEAR (2014) and NOT 2013??
    I can confirm, I'm seeing "THIS YEAR (2014)" with Sales Report version 3.1.0 under Zen Cart 1.5.1.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Sales report 2.0

    Quote Originally Posted by lhungil View Post
    I can confirm, I'm seeing "THIS YEAR (2014)" with Sales Report version 3.1.0 under Zen Cart 1.5.1.
    Well I'm stumped on a fix.. (tried a few things.. none worked) **sigh**
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Aug 2007
    Location
    Williston, Vermont
    Posts
    182
    Plugin Contributions
    1

    Default Re: Sales report 2.0

    Found the error - needs day and date in the mktime command:
    stats_sales_report.php line 532:
    Code:
    sprintf(SEARCH_DATE_LAST_YEAR, date("Y", mktime(0,0,0,1,1,date("y")-1)));

  8. #8
    Join Date
    Aug 2007
    Location
    Williston, Vermont
    Posts
    182
    Plugin Contributions
    1

    Default Re: Sales report 2.0

    @aalthouse - I can see where the tax column is messed up. In the function output_csv, if there is any tax, the variable $display_tax is set to true. Now, when the columns are printed out an extra header is included:

    Code:
                if ($display_tax) echo TABLE_HEADING_TAX . CSV_SEPARATOR;
    but two extra data are written:
    Code:
                  if ($display_tax) {
                    echo $o_data['goods_tax'] . CSV_SEPARATOR;
                    echo $o_data['order_recorded_tax'] . CSV_SEPARATOR;
                  }
    Just need to add both elements to the header:

    Code:
                if ($display_tax) {
                    echo TABLE_HEADING_TAX . CSV_SEPARATOR;
                    echo TABLE_HEADING_ORDER_RECORDED_TAX . CSV_SEPARATOR;
                }
    Slightly different for the type of report detail (timeframe, order, or product), but the same concept holds for all.

 

 

Similar Threads

  1. v139b Sales Report
    By irishshopper in forum General Questions
    Replies: 1
    Last Post: 26 Jan 2014, 01:00 AM
  2. Sales Report
    By jgold723 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Nov 2011, 05:58 PM
  3. Sales report
    By tlahtine in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 27 Dec 2010, 10:01 AM

Posting Permissions

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