diff --git a/config/search-string.php b/config/search-string.php index f65dfa820..ad9048e41 100644 --- a/config/search-string.php +++ b/config/search-string.php @@ -295,6 +295,24 @@ return [ ], ], + App\Models\Portal\Sale\Invoice::class => [ + 'columns' => [ + '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', + ], + ], + App\Models\Portal\Banking\Transaction::class => [ 'columns' => [ 'paid_at' => ['date' => true], diff --git a/resources/views/portal/invoices/index.blade.php b/resources/views/portal/invoices/index.blade.php index 69471d5eb..8e0892bc7 100644 --- a/resources/views/portal/invoices/index.blade.php +++ b/resources/views/portal/invoices/index.blade.php @@ -17,6 +17,7 @@ class-issued-at="col-sm-3 col-md-3 d-none d-sm-block" class-due-at="col-md-2 d-none d-md-block" class-status="col-xs-4 col-sm-3 col-md-2 text-center" + search-string-model="App\Models\Portal\Sale\Invoice" /> @endsection