API total_tax should include shipping tax

This commit is contained in:
Mike Jolley 2015-02-16 11:48:26 +00:00
parent fcbd5c4292
commit cdcd38ebb9
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class WC_API_Reports extends WC_API_Resource {
'average_sales' => $report_data->average_sales,
'total_orders' => $report_data->total_orders,
'total_items' => $report_data->total_items,
'total_tax' => $report_data->total_tax,
'total_tax' => wc_format_decimal( $report_data->total_tax + $report_data->total_shipping_tax, 2 ),
'total_shipping' => $report_data->total_shipping,
'total_discount' => $report_data->total_coupons,
'totals_grouped_by' => $this->report->chart_groupby,