2019-11-16 10:21:14 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Invalid search string handling
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| - all-results: (Default) Silently fail with a query containing everything.
|
|
|
|
| - no-results: Silently fail with a query containing nothing.
|
|
|
|
| - exceptions: Throw an `InvalidSearchStringException`.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-01-24 22:51:01 +03:00
|
|
|
'fail' => 'all-results',
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default options
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| When options are missing from your models, this array will be used
|
|
|
|
| to fill the gaps. You can also define a set of options specific
|
|
|
|
| to a model, using its class name as a key, e.g. 'App\User'.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'default' => [
|
|
|
|
'keywords' => [
|
|
|
|
'order_by' => 'sort',
|
|
|
|
'select' => 'fields',
|
|
|
|
'limit' => 'limit',
|
|
|
|
'offset' => 'page',
|
|
|
|
],
|
|
|
|
'columns' => [
|
|
|
|
'created_at' => 'date',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Auth\Permission::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'display_name' => ['searchable' => true],
|
|
|
|
'description' => ['searchable' => true],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Auth\Role::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'display_name' => ['searchable' => true],
|
|
|
|
'description' => ['searchable' => true],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Auth\User::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'email' => ['searchable' => true],
|
|
|
|
'enabled' => ['boolean' => true],
|
|
|
|
'last_logged_in_at' => ['date' => true],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Banking\Account::class => [
|
|
|
|
'columns' => [
|
2021-03-15 23:02:49 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'number' => ['searchable' => true],
|
|
|
|
'bank_name' => ['searchable' => true],
|
|
|
|
'bank_address' => ['searchable' => true],
|
2020-11-11 14:33:49 +03:00
|
|
|
'currency_code' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['currencies.index', 'search=enabled:1'],
|
2020-11-11 14:33:49 +03:00
|
|
|
],
|
2019-11-16 10:21:14 +03:00
|
|
|
'enabled' => ['boolean' => true],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Banking\Reconciliation::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2020-07-04 15:23:46 +03:00
|
|
|
'account' => ['relationship' => true],
|
2019-11-16 10:21:14 +03:00
|
|
|
'closing_balance',
|
|
|
|
'reconciled' => ['boolean' => true],
|
|
|
|
'started_at' => ['date' => true],
|
|
|
|
'ended_at' => ['date' => true],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Banking\Transaction::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'type',
|
2020-11-11 14:33:49 +03:00
|
|
|
'account_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['accounts.index', 'search=enabled:1'],
|
2020-11-11 14:33:49 +03:00
|
|
|
],
|
2019-11-16 10:21:14 +03:00
|
|
|
'paid_at' => ['date' => true],
|
|
|
|
'amount',
|
2020-11-11 14:33:49 +03:00
|
|
|
'currency_code' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['currencies.index', 'search=enabled:1'],
|
2020-11-11 14:33:49 +03:00
|
|
|
],
|
2019-11-16 10:21:14 +03:00
|
|
|
'document_id',
|
2021-02-18 18:22:57 +03:00
|
|
|
'contact_id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'description' => ['searchable' => true],
|
|
|
|
'payment_method',
|
|
|
|
'reference',
|
2020-11-11 14:33:49 +03:00
|
|
|
'category_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['categories.index', 'search=enabled:1'],
|
2020-11-11 14:33:49 +03:00
|
|
|
],
|
2019-11-16 10:21:14 +03:00
|
|
|
'parent_id',
|
2021-11-02 16:04:01 +03:00
|
|
|
'recurring' => [
|
|
|
|
'key' => 'recurring',
|
|
|
|
'foreign_key' => '',
|
|
|
|
'relationship' => true,
|
|
|
|
'boolean' => true,
|
|
|
|
]
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2021-02-11 01:57:17 +03:00
|
|
|
App\Models\Banking\Transfer::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2021-02-11 01:57:17 +03:00
|
|
|
'expense_account' => [
|
|
|
|
'relationship' => true,
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['accounts.index', 'search=enabled:1'],
|
2021-02-11 01:57:17 +03:00
|
|
|
],
|
|
|
|
'income_account' => [
|
|
|
|
'relationship' => true,
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['accounts.index', 'search=enabled:1'],
|
2021-02-11 01:57:17 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
App\Models\Common\Company::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'domain' => ['searchable' => true],
|
2021-02-10 17:06:35 +03:00
|
|
|
'settings.value' => ['searchable' => true],
|
2019-11-16 10:21:14 +03:00
|
|
|
'enabled' => ['boolean' => true],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2020-01-07 17:15:00 +03:00
|
|
|
App\Models\Common\Dashboard::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2020-01-07 17:15:00 +03:00
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'enabled' => ['boolean' => true],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
App\Models\Common\Item::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'description' => ['searchable' => true],
|
|
|
|
'enabled' => ['boolean' => true],
|
2020-11-06 01:48:49 +03:00
|
|
|
'category_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['categories.index', 'search=type:item enabled:1']
|
2020-11-06 01:48:49 +03:00
|
|
|
],
|
2020-11-11 14:33:49 +03:00
|
|
|
'sales_price',
|
|
|
|
'purchase_price',
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Common\Contact::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'type',
|
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'email' => ['searchable' => true],
|
|
|
|
'tax_number' => ['searchable' => true],
|
|
|
|
'phone' => ['searchable' => true],
|
|
|
|
'address' => ['searchable' => true],
|
|
|
|
'website' => ['searchable' => true],
|
2020-11-11 14:33:49 +03:00
|
|
|
'currency_code' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['currencies.index', 'search=enabled:1'],
|
2020-11-11 14:33:49 +03:00
|
|
|
],
|
2019-11-16 10:21:14 +03:00
|
|
|
'reference',
|
|
|
|
'user_id',
|
|
|
|
'enabled' => ['boolean' => true],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2020-12-24 01:28:38 +03:00
|
|
|
App\Models\Document\Document::class => [
|
2019-11-16 10:21:14 +03:00
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2020-12-24 01:28:38 +03:00
|
|
|
'type' => ['searchable' => true],
|
|
|
|
'document_number' => ['searchable' => true],
|
2019-11-16 10:21:14 +03:00
|
|
|
'order_number' => ['searchable' => true],
|
2020-01-11 16:57:32 +03:00
|
|
|
'status',
|
2021-02-18 23:28:22 +03:00
|
|
|
'issued_at' => [
|
|
|
|
'key' => '/^(invoiced_at|billed_at)$/',
|
|
|
|
'date' => true,
|
|
|
|
],
|
2019-11-16 10:21:14 +03:00
|
|
|
'due_at' => ['date' => true],
|
|
|
|
'amount',
|
2020-11-11 14:33:49 +03:00
|
|
|
'currency_code' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['currencies.index', 'search=enabled:1'],
|
2020-11-11 14:33:49 +03:00
|
|
|
],
|
2021-02-18 18:22:57 +03:00
|
|
|
'contact_id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'contact_name' => ['searchable' => true],
|
|
|
|
'contact_email' => ['searchable' => true],
|
|
|
|
'contact_tax_number',
|
|
|
|
'contact_phone' => ['searchable' => true],
|
|
|
|
'contact_address' => ['searchable' => true],
|
2020-12-24 16:41:54 +03:00
|
|
|
'category_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['categories.index', 'search=enabled:1'],
|
2020-12-24 16:41:54 +03:00
|
|
|
],
|
|
|
|
'parent_id',
|
2021-11-02 16:04:01 +03:00
|
|
|
'recurring' => [
|
|
|
|
'key' => 'recurring',
|
|
|
|
'relationship' => true,
|
|
|
|
'boolean' => true,
|
|
|
|
]
|
2020-12-24 16:41:54 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2021-02-18 18:22:57 +03:00
|
|
|
'App\Models\Purchase\Bill' => [
|
2020-12-24 16:41:54 +03:00
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2020-12-24 16:41:54 +03:00
|
|
|
'document_number' => ['searchable' => true],
|
|
|
|
'order_number' => ['searchable' => true],
|
2021-06-16 10:01:31 +03:00
|
|
|
'status' => [
|
|
|
|
'values' => [
|
|
|
|
'paid' => 'documents.statuses.paid',
|
|
|
|
'partial' => 'documents.statuses.partial',
|
|
|
|
'received' => 'documents.statuses.received',
|
|
|
|
'cancelled' => 'documents.statuses.cancelled',
|
|
|
|
'draft' => 'documents.statuses.draft',
|
|
|
|
],
|
|
|
|
],
|
2021-01-12 01:45:15 +03:00
|
|
|
'issued_at' => [
|
|
|
|
'key' => 'billed_at',
|
|
|
|
'date' => true,
|
|
|
|
],
|
2020-12-24 16:41:54 +03:00
|
|
|
'due_at' => ['date' => true],
|
|
|
|
'amount',
|
|
|
|
'currency_code' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['currencies.index', 'search=enabled:1'],
|
2020-12-24 16:41:54 +03:00
|
|
|
],
|
|
|
|
'contact_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['vendors.index', 'search=enabled:1'],
|
2020-12-24 16:41:54 +03:00
|
|
|
],
|
|
|
|
'contact_name' => ['searchable' => true],
|
|
|
|
'contact_email' => ['searchable' => true],
|
|
|
|
'contact_tax_number',
|
|
|
|
'contact_phone' => ['searchable' => true],
|
|
|
|
'contact_address' => ['searchable' => true],
|
|
|
|
'category_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['categories.index', 'search=type:expense enabled:1']
|
2020-12-24 16:41:54 +03:00
|
|
|
],
|
|
|
|
'parent_id',
|
2021-11-02 16:04:01 +03:00
|
|
|
'recurring' => [
|
|
|
|
'key' => 'recurring',
|
|
|
|
'foreign_key' => '',
|
|
|
|
'relationship' => true,
|
|
|
|
'boolean' => true,
|
|
|
|
]
|
2020-12-24 16:41:54 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2021-02-18 18:22:57 +03:00
|
|
|
'App\Models\Purchase\Payment' => [
|
2021-01-12 01:39:19 +03:00
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2021-01-12 01:39:19 +03:00
|
|
|
'type',
|
2021-02-18 18:22:57 +03:00
|
|
|
'account_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['accounts.index', 'search=enabled:1'],
|
2021-02-18 18:22:57 +03:00
|
|
|
],
|
|
|
|
'paid_at' => ['date' => true],
|
|
|
|
'amount',
|
2021-01-12 01:39:19 +03:00
|
|
|
'currency_code' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['currencies.index', 'search=enabled:1'],
|
2021-01-12 01:39:19 +03:00
|
|
|
],
|
2021-02-18 18:22:57 +03:00
|
|
|
'document_id',
|
|
|
|
'contact_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['vendors.index', 'search=enabled:1'],
|
2021-02-18 18:22:57 +03:00
|
|
|
],
|
|
|
|
'description' => ['searchable' => true],
|
|
|
|
'payment_method',
|
2021-01-12 01:39:19 +03:00
|
|
|
'reference',
|
2021-02-18 18:22:57 +03:00
|
|
|
'category_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['categories.index', 'search=type:expense enabled:1']
|
2021-02-18 18:22:57 +03:00
|
|
|
],
|
|
|
|
'parent_id',
|
2021-11-02 16:04:01 +03:00
|
|
|
'recurring' => [
|
|
|
|
'key' => 'recurring',
|
|
|
|
'foreign_key' => '',
|
|
|
|
'relationship' => true,
|
|
|
|
'boolean' => true,
|
|
|
|
]
|
2021-01-12 01:39:19 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2021-02-18 18:22:57 +03:00
|
|
|
'App\Models\Sale\Invoice' => [
|
2020-12-24 16:41:54 +03:00
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2020-12-24 16:41:54 +03:00
|
|
|
'document_number' => ['searchable' => true],
|
|
|
|
'order_number' => ['searchable' => true],
|
2021-06-16 10:01:31 +03:00
|
|
|
'status' => [
|
|
|
|
'values' => [
|
|
|
|
'paid' => 'documents.statuses.paid',
|
|
|
|
'partial' => 'documents.statuses.partial',
|
|
|
|
'sent' => 'documents.statuses.sent',
|
|
|
|
'viewed' => 'documents.statuses.viewed',
|
|
|
|
'cancelled' => 'documents.statuses.cancelled',
|
|
|
|
'draft' => 'documents.statuses.draft',
|
|
|
|
]
|
|
|
|
],
|
2021-01-12 01:45:15 +03:00
|
|
|
'issued_at' => [
|
|
|
|
'key' => 'invoiced_at',
|
|
|
|
'date' => true,
|
|
|
|
],
|
2020-12-24 16:41:54 +03:00
|
|
|
'due_at' => ['date' => true],
|
|
|
|
'amount',
|
|
|
|
'currency_code' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['currencies.index', 'search=enabled:1'],
|
2020-12-24 16:41:54 +03:00
|
|
|
],
|
|
|
|
'contact_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['customers.index', 'search=enabled:1'],
|
2020-12-24 16:41:54 +03:00
|
|
|
],
|
|
|
|
'contact_name' => ['searchable' => true],
|
|
|
|
'contact_email' => ['searchable' => true],
|
|
|
|
'contact_tax_number',
|
|
|
|
'contact_phone' => ['searchable' => true],
|
|
|
|
'contact_address' => ['searchable' => true],
|
2020-11-11 14:33:49 +03:00
|
|
|
'category_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['categories.index', 'search=type:income enabled:1']
|
2021-02-18 18:22:57 +03:00
|
|
|
],
|
|
|
|
'parent_id',
|
2021-11-02 16:04:01 +03:00
|
|
|
'recurring' => [
|
|
|
|
'key' => 'recurring',
|
|
|
|
'foreign_key' => '',
|
|
|
|
'relationship' => true,
|
|
|
|
'boolean' => true,
|
|
|
|
]
|
2021-02-18 18:22:57 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'App\Models\Sale\Revenue' => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2021-02-18 18:22:57 +03:00
|
|
|
'type',
|
|
|
|
'account_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['accounts.index', 'search=enabled:1'],
|
2021-02-18 18:22:57 +03:00
|
|
|
],
|
|
|
|
'paid_at' => ['date' => true],
|
|
|
|
'amount',
|
|
|
|
'currency_code' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['currencies.index', 'search=enabled:1'],
|
2021-02-18 18:22:57 +03:00
|
|
|
],
|
|
|
|
'document_id',
|
|
|
|
'contact_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['customers.index', 'search=enabled:1'],
|
2021-02-18 18:22:57 +03:00
|
|
|
],
|
|
|
|
'description' => ['searchable' => true],
|
|
|
|
'payment_method',
|
|
|
|
'reference',
|
|
|
|
'category_id' => [
|
2021-12-01 13:46:23 +03:00
|
|
|
'route' => ['categories.index', 'search=type:income enabled:1'],
|
2020-11-11 14:33:49 +03:00
|
|
|
],
|
2019-11-16 10:21:14 +03:00
|
|
|
'parent_id',
|
2021-11-02 16:04:01 +03:00
|
|
|
'recurring' => [
|
|
|
|
'key' => 'recurring',
|
|
|
|
'foreign_key' => '',
|
|
|
|
'relationship' => true,
|
|
|
|
'boolean' => true,
|
|
|
|
]
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Setting\Category::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'enabled' => ['boolean' => true],
|
|
|
|
'type',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Setting\Currency::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'code' => ['searchable' => true],
|
|
|
|
'rate' => ['searchable' => true],
|
|
|
|
'enabled' => ['boolean' => true],
|
|
|
|
'precision',
|
|
|
|
'symbol',
|
2021-01-11 17:42:49 +03:00
|
|
|
'symbol_first' => [
|
|
|
|
'boolean' => true,
|
2021-01-11 23:56:18 +03:00
|
|
|
'translation' => [
|
2021-01-11 17:42:49 +03:00
|
|
|
0 => 'currencies.symbol.after',
|
|
|
|
1 => 'currencies.symbol.before',
|
|
|
|
]
|
|
|
|
],
|
2019-11-16 10:21:14 +03:00
|
|
|
'decimal_mark',
|
|
|
|
'thousands_separator',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
App\Models\Setting\Tax::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2019-11-16 10:21:14 +03:00
|
|
|
'name' => ['searchable' => true],
|
|
|
|
'type',
|
|
|
|
'rate',
|
|
|
|
'enabled' => ['boolean' => true],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2021-01-12 22:32:01 +03:00
|
|
|
App\Models\Portal\Sale\Invoice::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2021-01-12 22:32:01 +03:00
|
|
|
'document_number' => ['searchable' => true],
|
|
|
|
'order_number' => ['searchable' => true],
|
|
|
|
'status',
|
|
|
|
'issued_at' => [
|
|
|
|
'key' => 'invoiced_at',
|
|
|
|
'date' => true,
|
|
|
|
],
|
|
|
|
'due_at' => ['date' => true],
|
|
|
|
'amount',
|
|
|
|
'currency_code' => [
|
|
|
|
'route' => 'portal.payment.currencies'
|
|
|
|
],
|
|
|
|
'parent_id',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2021-01-12 22:21:59 +03:00
|
|
|
App\Models\Portal\Banking\Transaction::class => [
|
|
|
|
'columns' => [
|
2021-03-17 12:16:09 +03:00
|
|
|
'id',
|
2021-01-12 22:21:59 +03:00
|
|
|
'paid_at' => ['date' => true],
|
|
|
|
'amount',
|
|
|
|
'currency_code' => [
|
|
|
|
'route' => 'portal.payment.currencies'
|
|
|
|
],
|
|
|
|
'document_id',
|
|
|
|
'description' => ['searchable' => true],
|
|
|
|
'payment_method',
|
|
|
|
'reference',
|
|
|
|
'parent_id',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
];
|