@ docfx & wapnoj:
I went through the code and couldn't find anything that would cause the tax discrepancy you are seeing. However, I did realize that the Sales Report uses zen_calculate_tax() to process the tax values per product, and remembered that the most recent version of Zen Cart had bug fixes to rounding errors with taxes. So, what version are running? If it's not v1.3.6, at least download it and pull the latest version of zen_calculate_tax() into your installation. You'll need to edit includes/function/functions_taxes.php.

Originally Posted by
m8trixdg
Great job on Sales Report Blindside.
Thanks!
Do you know if when I click on an order line I can get it to open in a new window instead of the same window?
Yes it's possible but will require some editing and some JavaScript chops. You have to edit the admin/stats_sales_report.php file. Look for the following comment code:
Code:
<!--ORDER LINE ITEM HEADER-->
Then, go down about 20 lines from there and find this line:
Code:
<tr class="lineItemRow" <?php echo $rollover; ?> onclick="document.location.href=<?php echo '\'' . zen_href_link(FILENAME_ORDERS, 'oID=' . $o_data['oID'] . '&action=edit', 'NONSSL') . '\''; ?>">
See, because it's an "onclick" event, you can't just use target="_blank". You'll need to include a popup window JS function, then wrap everything inside the onclick within it. So it would look something like the following (new stuff in bold)...
Code:
<tr class="lineItemRow" <?php echo $rollover; ?> onclick="mypopup(document.location.href=<?php echo '\'' . zen_href_link(FILENAME_ORDERS, 'oID=' . $o_data['oID'] . '&action=edit', 'NONSSL') . '\''; ?>)">
Also I tried changing the DisplayInformation to +order by default but it does not work. Any ideas. I changed it in the language file.
It must match exactly as it appears in the comments next to the default defines. For order line items you need the following...
Code:
define('DEFAULT_DETAIL_LEVEL', 'order'); // ['timeframe'], 'product', 'order', 'matrix'
Bookmarks