feat(*): View Detail.

This commit is contained in:
elforjani3
2021-08-01 19:44:36 +02:00
parent 44edc990ae
commit 4b424a8e01
11 changed files with 48 additions and 31 deletions

View File

@@ -12,27 +12,28 @@ export default function JournalEntriesTable({ transactions }) {
{
Header: intl.get('date'),
accessor: 'date',
// accessor: (r) => moment(new Date()).format('YYYY MMM DD'),
width: 150,
accessor: ({ formatted_date }) =>
moment(formatted_date).format('YYYY MMM DD'),
width: 140,
},
{
Header: intl.get('account_name'),
accessor: 'accountName',
width: 150,
accessor: 'account_name',
width: 140,
},
{
Header: intl.get('contact'),
accessor: 'contactTypeFormatted',
width: 150,
width: 140,
},
{
Header: intl.get('credit'),
accessor: ({ credit }) => credit.formattedAmount,
accessor: ({ credit }) => credit.formatted_amount,
width: 100,
},
{
Header: intl.get('debit'),
accessor: ({ debit }) => debit.formattedAmount,
accessor: ({ debit }) => debit.formatted_amount,
width: 100,
},
],