Use both values
This commit is contained in:
parent
deef367994
commit
3c15dd0045
|
@ -133,6 +133,7 @@ class TaxesReportTable extends Component {
|
|||
|
||||
getSummary( totals, totalResults = 0 ) {
|
||||
const {
|
||||
tax_codes: taxesCodes = 0,
|
||||
total_tax: totalTax = 0,
|
||||
order_tax: orderTax = 0,
|
||||
shipping_tax: shippingTax = 0,
|
||||
|
@ -141,14 +142,18 @@ class TaxesReportTable extends Component {
|
|||
const { formatAmount, getCurrencyConfig } = this.context;
|
||||
const currency = getCurrencyConfig();
|
||||
return [
|
||||
{
|
||||
label: _n( 'tax', 'taxes', taxesCodes, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', totalResults ),
|
||||
},
|
||||
{
|
||||
label: _n(
|
||||
'tax code',
|
||||
'tax codes',
|
||||
totalResults,
|
||||
'distinct code',
|
||||
'distinct codes',
|
||||
taxesCodes,
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', totalResults ),
|
||||
value: formatValue( currency, 'number', taxesCodes ),
|
||||
},
|
||||
{
|
||||
label: __( 'total tax', 'woocommerce' ),
|
||||
|
|
Loading…
Reference in New Issue