
Originally Posted by
hqarrse
Just found a clue. At the point of change (unfortunately I don't know if it was at this point that I switched to 1.3.7 or whether I had done that before), I have found a change in the orders_total table.
Any entry in the orders_total table used to be 4 rows per order_id:
"Sub-Total".
Shipping Method description
"(Incl VAT)"
"Total"
The "(Incl VAT)" entry for each order no longer appears against any of my orders.
I notice in the sales_report class code the following:
####################___
// future code - currently being pulled from orders_total table for better accuracy
// calculate tax values
//$this->timeframe[$id]['total']['tax'] += zen_calculate_tax($onetime_charges, $tax);
//$this->timeframe[$id]['total']['tax'] += zen_calculate_tax(($final_price * $quantity), $tax);
####################____
Uncommenting these lines does give me a tax figure in the total rows of the report, but it is still being rounded down.
I am fiddling beyond my capability here, and hope this means something to someone fore familiar with sales_report and ZC tax.
I wonder if the loss of my orders_total row is a change in 1.3.7 (I can't remembered when I upgraded unfortunately) or a setting somewhere else in my new shop install.
Help appreciated.
Bookmarks