Added refund_total also to intervals (to be able to calculate net_total correctly).

This commit is contained in:
Peter Fabian 2019-01-11 11:32:59 +01:00
parent ff6b4ffb26
commit 5edc60d30b
1 changed files with 1 additions and 0 deletions

View File

@ -784,6 +784,7 @@ class WC_Admin_Reports_Orders_Data_Store extends WC_Admin_Reports_Data_Store imp
$segmenting_groupby AS $segmenting_dimension_name,
MAX( num_items_sold ) AS num_items_sold,
MAX( net_total ) as net_total,
MAX( refund_total ) as refund_total,
MAX( returning_customer ) AS returning_customer
FROM
$table_name