From 5384fa2fb5b23f281e58c2b69b330fe806f3a6f0 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Thu, 13 Aug 2020 14:50:45 +0200 Subject: [PATCH] Fix :Estimate & Invoices & Receipt DataTable --- client/src/containers/Sales/Estimate/EstimatesDataTable.js | 2 +- client/src/containers/Sales/Invoice/InvoicesDataTable.js | 2 +- client/src/containers/Sales/Receipt/ReceiptsDataTable.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/containers/Sales/Estimate/EstimatesDataTable.js b/client/src/containers/Sales/Estimate/EstimatesDataTable.js index 3cc850eb3..75e5d7253 100644 --- a/client/src/containers/Sales/Estimate/EstimatesDataTable.js +++ b/client/src/containers/Sales/Estimate/EstimatesDataTable.js @@ -130,7 +130,7 @@ function EstimatesDataTable({ { id: 'customer_id', Header: formatMessage({ id: 'customer_name' }), - accessor: (row) => row.customer_id, + accessor: 'customer.display_name', width: 140, className: 'customer_id', }, diff --git a/client/src/containers/Sales/Invoice/InvoicesDataTable.js b/client/src/containers/Sales/Invoice/InvoicesDataTable.js index 83cc6625d..b4ab50cae 100644 --- a/client/src/containers/Sales/Invoice/InvoicesDataTable.js +++ b/client/src/containers/Sales/Invoice/InvoicesDataTable.js @@ -131,7 +131,7 @@ function InvoicesDataTable({ { id: 'customer_id', Header: formatMessage({ id: 'customer_name' }), - accessor: (row) => row.customer_id, + accessor: 'customer.display_name', width: 140, className: 'customer_id', }, diff --git a/client/src/containers/Sales/Receipt/ReceiptsDataTable.js b/client/src/containers/Sales/Receipt/ReceiptsDataTable.js index 4c64e8c88..d1ec2939b 100644 --- a/client/src/containers/Sales/Receipt/ReceiptsDataTable.js +++ b/client/src/containers/Sales/Receipt/ReceiptsDataTable.js @@ -130,7 +130,7 @@ function ReceiptsDataTable({ { id: 'customer_id', Header: formatMessage({ id: 'customer_name' }), - accessor: (row) => row.customer_id, + accessor: 'customer.display_name', width: 140, className: 'customer_id', },