Added refund_total also to intervals (to be able to calculate net_total correctly).
This commit is contained in:
parent
ff6b4ffb26
commit
5edc60d30b
|
@ -784,6 +784,7 @@ class WC_Admin_Reports_Orders_Data_Store extends WC_Admin_Reports_Data_Store imp
|
||||||
$segmenting_groupby AS $segmenting_dimension_name,
|
$segmenting_groupby AS $segmenting_dimension_name,
|
||||||
MAX( num_items_sold ) AS num_items_sold,
|
MAX( num_items_sold ) AS num_items_sold,
|
||||||
MAX( net_total ) as net_total,
|
MAX( net_total ) as net_total,
|
||||||
|
MAX( refund_total ) as refund_total,
|
||||||
MAX( returning_customer ) AS returning_customer
|
MAX( returning_customer ) AS returning_customer
|
||||||
FROM
|
FROM
|
||||||
$table_name
|
$table_name
|
||||||
|
|
Loading…
Reference in New Issue