fix: Reorder 'debit' and 'credit' columns

This commit is contained in:
Ahmed Bouhuolia
2024-06-24 10:43:34 +02:00
parent 7b4afd3859
commit 8e0911ec85
5 changed files with 39 additions and 39 deletions

View File

@@ -25,14 +25,6 @@ export const useGLEntriesTableColumns = () => {
width: 140,
textOverview: true,
},
{
Header: intl.get('credit'),
accessor: ({ credit }) => credit.formatted_amount,
width: 100,
className: 'credit',
align: 'right',
textOverview: true,
},
{
Header: intl.get('debit'),
accessor: ({ debit }) => debit.formatted_amount,
@@ -41,6 +33,14 @@ export const useGLEntriesTableColumns = () => {
textOverview: true,
align: 'right',
},
{
Header: intl.get('credit'),
accessor: ({ credit }) => credit.formatted_amount,
width: 100,
className: 'credit',
align: 'right',
textOverview: true,
},
],
[],
);