From 68a8012f572a5d9fc2e979d9281b9b6f72f2d857 Mon Sep 17 00:00:00 2001 From: Connor Jennings Date: Mon, 19 Aug 2019 12:42:34 -0400 Subject: [PATCH 1/2] CSV download of Orders now shows coupons in Coupon(s) column --- .../woocommerce-admin/client/analytics/report/orders/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/client/analytics/report/orders/table.js b/plugins/woocommerce-admin/client/analytics/report/orders/table.js index bf1e0167f38..ac2be5777cc 100644 --- a/plugins/woocommerce-admin/client/analytics/report/orders/table.js +++ b/plugins/woocommerce-admin/client/analytics/report/orders/table.js @@ -192,7 +192,7 @@ export default class OrdersReportTable extends Component { formattedCoupons.length ? [ formattedCoupons[ 0 ] ] : [], formattedCoupons ), - value: formattedCoupons.map( item => item.code ).join( ' ' ), + value: formattedCoupons.map( coupon => coupon.label ).join( ' ' ), }, { display: renderCurrency( net_total, currency ), From d44af04adda1fa05180f6be9e2e233d79d5bd959 Mon Sep 17 00:00:00 2001 From: Connor Jennings Date: Tue, 20 Aug 2019 09:15:55 -0400 Subject: [PATCH 2/2] Update client/analytics/report/orders/table.js Co-Authored-By: Joshua T Flowers --- .../woocommerce-admin/client/analytics/report/orders/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/client/analytics/report/orders/table.js b/plugins/woocommerce-admin/client/analytics/report/orders/table.js index ac2be5777cc..f1532940974 100644 --- a/plugins/woocommerce-admin/client/analytics/report/orders/table.js +++ b/plugins/woocommerce-admin/client/analytics/report/orders/table.js @@ -192,7 +192,7 @@ export default class OrdersReportTable extends Component { formattedCoupons.length ? [ formattedCoupons[ 0 ] ] : [], formattedCoupons ), - value: formattedCoupons.map( coupon => coupon.label ).join( ' ' ), + value: formattedCoupons.map( coupon => coupon.label ).join( ', ' ), }, { display: renderCurrency( net_total, currency ),