Correct number format in coupon total

This commit is contained in:
Mike Jolley 2015-07-30 12:52:52 +01:00
parent b28c6db7f5
commit 622dc777f0
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class WC_Report_Sales_By_Date extends WC_Admin_Report {
// Total orders and discounts also includes those which have been refunded at some point
$this->report_data->total_orders = absint( array_sum( wp_list_pluck( $this->report_data->order_counts, 'count' ) ) );
$this->report_data->total_coupons = number_format( array_sum( wp_list_pluck( $this->report_data->coupons, 'discount_amount' ) ), 2 );
$this->report_data->total_coupons = number_format( array_sum( wp_list_pluck( $this->report_data->coupons, 'discount_amount' ) ), 2, '.', '' );
$this->report_data->total_refunded_orders = absint( count( $this->report_data->full_refunds ) );
// Item counts