feat: add payment trasnactions.

This commit is contained in:
elforjani13
2021-12-14 17:56:42 +02:00
parent ae7d37a0e0
commit 6aba694518
19 changed files with 448 additions and 382 deletions

View File

@@ -14,17 +14,23 @@ export const useBillPaymentTransactionsColumns = () => {
{
id: 'date',
Header: intl.get('payment_date'),
accessor: 'date',
accessor: 'formatted_payment_date',
Cell: FormatDateCell,
width: 110,
className: 'date',
textOverview: true,
},
{
id: 'payment_account_name',
Header: intl.get('bill_transactions.column.deposit_account'),
accessor: 'payment_account_name',
width: 120,
textOverview: true,
},
{
id: 'amount',
Header: intl.get('amount'),
accessor: 'amount',
// accessor: 'formatted_amount',
accessor: 'formatted_payment_amount',
align: 'right',
width: 100,
className: clsx(CLASSES.FONT_BOLD),
@@ -40,9 +46,9 @@ export const useBillPaymentTransactionsColumns = () => {
{
id: 'reference',
Header: intl.get('reference_no'),
accessor: 'reference',
accessor: 'payment_reference_no',
width: 90,
className: 'reference',
className: 'payment_reference_no',
clickable: true,
textOverview: true,
},