API: reports/sales now also returns total refunds.

Fixes #7262
This commit is contained in:
Barry Kooij 2015-03-09 17:09:07 +01:00
parent 4171a20e29
commit e99bcc7f77
1 changed files with 1 additions and 0 deletions

View File

@ -187,6 +187,7 @@ class WC_API_Reports extends WC_API_Resource {
'total_items' => $report_data->total_items,
'total_tax' => wc_format_decimal( $report_data->total_tax + $report_data->total_shipping_tax, 2 ),
'total_shipping' => $report_data->total_shipping,
'total_refunds' => $report_data->total_refunds,
'total_discount' => $report_data->total_coupons,
'totals_grouped_by' => $this->report->chart_groupby,
'totals' => $period_totals,