* Change Refunds to Returns

* Also rename the chart

* Rename dashboard chart
This commit is contained in:
Timmy Crawford 2020-01-03 15:12:53 -08:00 committed by GitHub
parent 4a969a6fd1
commit 41986bd8f0
2 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ const defaultCharts = [
key: 'items_sold',
},
{
label: __( 'Refunds', 'woocommerce-admin' ),
label: __( 'Returns', 'woocommerce-admin' ),
report: 'revenue',
key: 'refunds',
},

View File

@ -211,8 +211,8 @@ class Controller extends \WC_REST_Reports_Controller implements ExportableInterf
'format' => 'currency',
),
'refunds' => array(
'title' => __( 'Refunds', 'woocommerce-admin' ),
'description' => __( 'Total of refunds.', 'woocommerce-admin' ),
'title' => __( 'Returns', 'woocommerce-admin' ),
'description' => __( 'Total of returns.', 'woocommerce-admin' ),
'type' => 'number',
'context' => array( 'view', 'edit' ),
'readonly' => true,
@ -450,7 +450,7 @@ class Controller extends \WC_REST_Reports_Controller implements ExportableInterf
'date' => __( 'Date', 'woocommerce-admin' ),
'orders_count' => __( 'Orders', 'woocommerce-admin' ),
'total_sales' => __( 'Total Sales', 'woocommerce-admin' ),
'refunds' => __( 'Refunds', 'woocommerce-admin' ),
'refunds' => __( 'Returns', 'woocommerce-admin' ),
'coupons' => __( 'Coupons', 'woocommerce-admin' ),
'taxes' => __( 'Taxes', 'woocommerce-admin' ),
'shipping' => __( 'Shipping', 'woocommerce-admin' ),