mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix(TrialBalanceSheet): expand account name column.
This commit is contained in:
@@ -11,8 +11,6 @@ import FinancialLoadingBar from '../FinancialLoadingBar';
|
|||||||
* Retrieve trial balance sheet table columns.
|
* Retrieve trial balance sheet table columns.
|
||||||
*/
|
*/
|
||||||
export const useTrialBalanceTableColumns = () => {
|
export const useTrialBalanceTableColumns = () => {
|
||||||
|
|
||||||
|
|
||||||
// Trial balance sheet context.
|
// Trial balance sheet context.
|
||||||
const {
|
const {
|
||||||
trialBalanceSheet: { tableRows },
|
trialBalanceSheet: { tableRows },
|
||||||
@@ -24,7 +22,7 @@ export const useTrialBalanceTableColumns = () => {
|
|||||||
Header: intl.get('account_name'),
|
Header: intl.get('account_name'),
|
||||||
accessor: (row) => (row.code ? `${row.name} - ${row.code}` : row.name),
|
accessor: (row) => (row.code ? `${row.name} - ${row.code}` : row.name),
|
||||||
className: 'name',
|
className: 'name',
|
||||||
width: 180,
|
width: 350,
|
||||||
textOverview: true,
|
textOverview: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -35,12 +33,14 @@ export const useTrialBalanceTableColumns = () => {
|
|||||||
width: getColumnWidth(tableRows, `credit`, {
|
width: getColumnWidth(tableRows, `credit`, {
|
||||||
minWidth: 80,
|
minWidth: 80,
|
||||||
}),
|
}),
|
||||||
|
textOverview: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Header: intl.get('debit'),
|
Header: intl.get('debit'),
|
||||||
Cell: CellTextSpan,
|
Cell: CellTextSpan,
|
||||||
accessor: 'formatted_debit',
|
accessor: 'formatted_debit',
|
||||||
width: getColumnWidth(tableRows, `debit`, { minWidth: 80 }),
|
width: getColumnWidth(tableRows, `debit`, { minWidth: 80 }),
|
||||||
|
textOverview: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Header: intl.get('balance'),
|
Header: intl.get('balance'),
|
||||||
@@ -50,6 +50,7 @@ export const useTrialBalanceTableColumns = () => {
|
|||||||
width: getColumnWidth(tableRows, `balance`, {
|
width: getColumnWidth(tableRows, `balance`, {
|
||||||
minWidth: 80,
|
minWidth: 80,
|
||||||
}),
|
}),
|
||||||
|
textOverview: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[tableRows],
|
[tableRows],
|
||||||
|
|||||||
Reference in New Issue
Block a user