[2.1] Total tax should be +, not -
This commit is contained in:
parent
7a4efddad1
commit
8c1b384f43
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue