@ 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
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?
Then, go down about 20 lines from there and find this line:
<!--ORDER LINE ITEM HEADER-->
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)...
<tr class="lineItemRow" <?php echo $rollover; ?> onclick="document.location.href=<?php echo '\'' . zen_href_link(FILENAME_ORDERS, 'oID=' . $o_data['oID'] . '&action=edit', 'NONSSL') . '\''; ?>">
<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') . '\''; ?>)">
It must match exactly as it appears in the comments next to the default defines. For order line items you need the following...
Also I tried changing the DisplayInformation to +order by default but it does not work. Any ideas. I changed it in the language file.
define('DEFAULT_DETAIL_LEVEL', 'order'); // ['timeframe'], 'product', 'order', 'matrix'