feat: configure columns of resources export

This commit is contained in:
Ahmed Bouhuolia
2024-05-01 20:15:35 +02:00
parent 495941f43a
commit 55aab76c9b
12 changed files with 74 additions and 62 deletions

View File

@@ -83,31 +83,24 @@ export default {
name: 'receipt.field.amount',
column: 'amount',
type: 'number',
exportable: true,
},
depositAccount: {
column: 'deposit_account_id',
name: 'receipt.field.deposit_account',
type: 'relation',
exportable: true,
type: 'text',
accessor: 'depositAccount.name',
},
customer: {
name: 'receipt.field.customer',
column: 'customer_id',
type: 'relation',
exportable: true,
type: 'text',
accessor: 'customer.displayName',
},
receiptDate: {
name: 'receipt.field.receipt_date',
column: 'receipt_date',
type: 'date',
exportable: true,
},
receiptNumber: {
name: 'receipt.field.receipt_number',
column: 'receipt_number',
type: 'text',
exportable: true,
},
referenceNo: {
name: 'receipt.field.reference_no',
@@ -119,19 +112,14 @@ export default {
name: 'receipt.field.receipt_message',
column: 'receipt_message',
type: 'text',
exportable: true,
},
statement: {
name: 'receipt.field.statement',
column: 'statement',
type: 'text',
exportable: true,
},
createdAt: {
name: 'receipt.field.created_at',
column: 'created_at',
type: 'date',
exportable: true,
},
status: {
name: 'receipt.field.status',