[2.1] Total tax should be +, not -

This commit is contained in:
Mike Jolley 2014-06-17 10:19:40 +01:00
parent 7a4efddad1
commit 8c1b384f43
1 changed files with 2 additions and 2 deletions

View File

@ -115,8 +115,8 @@ class WC_Report_Taxes_By_Date extends WC_Admin_Report {
</tr>
</thead>
<?php if ( $tax_rows ) :
$gross = array_sum( wp_list_pluck( (array) $tax_rows, 'total_sales' ) ) - array_sum( wp_list_pluck( (array) $tax_rows, 'total_shipping' ) );
$total_tax = array_sum( wp_list_pluck( (array) $tax_rows, 'tax_amount' ) ) - array_sum( wp_list_pluck( (array) $tax_rows, 'shipping_tax_amount' ) );
$gross = array_sum( wp_list_pluck( (array) $tax_rows, 'total_sales' ) ) - array_sum( wp_list_pluck( (array) $tax_rows, 'total_shipping' ) );
$total_tax = array_sum( wp_list_pluck( (array) $tax_rows, 'tax_amount' ) ) + array_sum( wp_list_pluck( (array) $tax_rows, 'shipping_tax_amount' ) );
?>
<tfoot>
<tr>