Page 65 of 87 FirstFirst ... 1555636465666775 ... LastLast
Results 641 to 650 of 869
  1. #641
    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. #642
    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. #643
    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. #644
    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. #645
    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. #646
    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. #647
    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. #648
    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 carlvt88 View Post
    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)));
    I found this code in line 457 not 532.. Made the change and it made no difference..


    Code:
                  <td class="smallText" id="td_last_year"><?php echo zen_draw_radio_field('date_preset', 'last_year', false) . sprintf(SEARCH_DATE_LAST_YEAR, date("Y", mktime(0,0,0,1,1,date("y")-1))); ?></td>
    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.

  9. #649
    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.

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

    Default Re: Sales report 2.0

    While I was looking at it, I found another problem in the csv data - if you're looking at 'timeframe' level of detail, the taxes aren't written to the csv file. In sales_report.php line 992, add 'echo' to these lines:

    Code:
                if ($display_tax) {
                  echo $timeframe['total']['goods_tax'] . CSV_SEPARATOR;
                  echo $timeframe['total']['order_recorded_tax'] . CSV_SEPARATOR;
                }

 

 
Page 65 of 87 FirstFirst ... 1555636465666775 ... LastLast

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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR