From 129b73c363db603726510592fe1bebf4b6dbfe38 Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Sun, 12 Sep 2021 10:18:26 +0200 Subject: [PATCH] fix: resource table text overview. --- client/src/containers/Accounts/utils.js | 2 ++ client/src/containers/Items/components.js | 2 ++ .../Sales/Estimates/EstimatesLanding/components.js | 5 +++++ .../Sales/Invoices/InvoicesLanding/components.js | 6 ++++++ .../Sales/PaymentReceives/PaymentsLanding/components.js | 7 ++++++- .../Sales/Receipts/ReceiptsLanding/components.js | 6 ++++++ 6 files changed, 27 insertions(+), 1 deletion(-) diff --git a/client/src/containers/Accounts/utils.js b/client/src/containers/Accounts/utils.js index 728ec6f81..76c3f1c90 100644 --- a/client/src/containers/Accounts/utils.js +++ b/client/src/containers/Accounts/utils.js @@ -57,6 +57,7 @@ export const useAccountsTableColumns = () => { className: 'account_name', width: 200, clickable: true, + textOverview: true, }, { id: 'code', @@ -73,6 +74,7 @@ export const useAccountsTableColumns = () => { className: 'type', width: 140, clickable: true, + textOverview: true, }, { id: 'normal', diff --git a/client/src/containers/Items/components.js b/client/src/containers/Items/components.js index 7eae9b44c..a228fb27d 100644 --- a/client/src/containers/Items/components.js +++ b/client/src/containers/Items/components.js @@ -156,6 +156,7 @@ export const useItemsTableColumns = () => { className: 'name', width: 180, clickable: true, + textOverview: true, }, { id: 'code', @@ -180,6 +181,7 @@ export const useItemsTableColumns = () => { className: 'category', width: 150, clickable: true, + textOverview: true, }, { id: 'sell_price', diff --git a/client/src/containers/Sales/Estimates/EstimatesLanding/components.js b/client/src/containers/Sales/Estimates/EstimatesLanding/components.js index 88a0d39e3..130dc1c64 100644 --- a/client/src/containers/Sales/Estimates/EstimatesLanding/components.js +++ b/client/src/containers/Sales/Estimates/EstimatesLanding/components.js @@ -160,6 +160,7 @@ export function useEstiamtesTableColumns() { width: 140, className: 'estimate_date', clickable: true, + textOverview: true, }, { id: 'customer', @@ -168,6 +169,7 @@ export function useEstiamtesTableColumns() { width: 140, className: 'customer_id', clickable: true, + textOverview: true, }, { id: 'expiration_date', @@ -177,6 +179,7 @@ export function useEstiamtesTableColumns() { width: 140, className: 'expiration_date', clickable: true, + textOverview: true, }, { id: 'estimate_number', @@ -186,6 +189,7 @@ export function useEstiamtesTableColumns() { width: 140, className: 'estimate_number', clickable: true, + textOverview: true, }, { id: 'amount', @@ -210,6 +214,7 @@ export function useEstiamtesTableColumns() { width: 90, className: 'reference', clickable: true, + textOverview: true, }, ], [], diff --git a/client/src/containers/Sales/Invoices/InvoicesLanding/components.js b/client/src/containers/Sales/Invoices/InvoicesLanding/components.js index 36f4c1d42..fff48382d 100644 --- a/client/src/containers/Sales/Invoices/InvoicesLanding/components.js +++ b/client/src/containers/Sales/Invoices/InvoicesLanding/components.js @@ -170,6 +170,7 @@ export function useInvoicesTableColumns() { width: 110, className: 'invoice_date', clickable: true, + textOverview: true, }, { id: 'customer', @@ -178,6 +179,7 @@ export function useInvoicesTableColumns() { width: 180, className: 'customer_id', clickable: true, + textOverview: true, }, { @@ -187,6 +189,7 @@ export function useInvoicesTableColumns() { width: 100, className: 'invoice_no', clickable: true, + textOverview: true, }, { id: 'amount', @@ -195,6 +198,7 @@ export function useInvoicesTableColumns() { width: 120, className: 'balance', clickable: true, + textOverview: true, }, { id: 'status', @@ -211,6 +215,7 @@ export function useInvoicesTableColumns() { width: 110, className: 'due_date', clickable: true, + textOverview: true, }, { id: 'reference_no', @@ -219,6 +224,7 @@ export function useInvoicesTableColumns() { width: 90, className: 'reference_no', clickable: true, + textOverview: true, }, ], [], diff --git a/client/src/containers/Sales/PaymentReceives/PaymentsLanding/components.js b/client/src/containers/Sales/PaymentReceives/PaymentsLanding/components.js index 013198bcd..24bac9ecd 100644 --- a/client/src/containers/Sales/PaymentReceives/PaymentsLanding/components.js +++ b/client/src/containers/Sales/PaymentReceives/PaymentsLanding/components.js @@ -8,7 +8,6 @@ import { MenuDivider, Position, } from '@blueprintjs/core'; -import { FormattedMessage as T } from 'components'; import intl from 'react-intl-universal'; import moment from 'moment'; import { Money, Icon } from 'components'; @@ -90,6 +89,7 @@ export function usePaymentReceivesColumns() { width: 140, className: 'payment_date', clickable: true, + textOverview: true, }, { id: 'customer', @@ -98,6 +98,7 @@ export function usePaymentReceivesColumns() { width: 160, className: 'customer_id', clickable: true, + textOverview: true, }, { id: 'amount', @@ -106,6 +107,7 @@ export function usePaymentReceivesColumns() { width: 120, className: 'amount', clickable: true, + textOverview: true, }, { id: 'payment_receive_no', @@ -115,6 +117,7 @@ export function usePaymentReceivesColumns() { width: 140, className: 'payment_receive_no', clickable: true, + textOverview: true, }, { id: 'deposit_account', @@ -123,6 +126,7 @@ export function usePaymentReceivesColumns() { width: 140, className: 'deposit_account_id', clickable: true, + textOverview: true, }, { id: 'reference_no', @@ -131,6 +135,7 @@ export function usePaymentReceivesColumns() { width: 140, className: 'reference_no', clickable: true, + textOverview: true, }, ], [], diff --git a/client/src/containers/Sales/Receipts/ReceiptsLanding/components.js b/client/src/containers/Sales/Receipts/ReceiptsLanding/components.js index df7b70448..14a1623ef 100644 --- a/client/src/containers/Sales/Receipts/ReceiptsLanding/components.js +++ b/client/src/containers/Sales/Receipts/ReceiptsLanding/components.js @@ -102,6 +102,7 @@ export function useReceiptsTableColumns() { width: 140, className: 'receipt_date', clickable: true, + textOverview: true, }, { id: 'customer', @@ -110,6 +111,7 @@ export function useReceiptsTableColumns() { width: 140, className: 'customer_id', clickable: true, + textOverview: true, }, { id: 'receipt_number', @@ -118,6 +120,7 @@ export function useReceiptsTableColumns() { width: 140, className: 'receipt_number', clickable: true, + textOverview: true, }, { id: 'deposit_account', @@ -126,6 +129,7 @@ export function useReceiptsTableColumns() { width: 140, className: 'deposit_account', clickable: true, + textOverview: true, }, { id: 'amount', @@ -134,6 +138,7 @@ export function useReceiptsTableColumns() { width: 140, className: 'amount', clickable: true, + textOverview: true, }, { id: 'status', @@ -150,6 +155,7 @@ export function useReceiptsTableColumns() { width: 140, className: 'reference_no', clickable: true, + textOverview: true, }, ], [],