diff --git a/config/search-string.php b/config/search-string.php index e8721339e..55587007d 100644 --- a/config/search-string.php +++ b/config/search-string.php @@ -183,6 +183,58 @@ return [ ], ], + App\Models\Purchase\Bill::class => [ + 'columns' => [ + 'document_number' => ['searchable' => true], + 'order_number' => ['searchable' => true], + 'status', + 'issued_at' => ['date' => true], + 'due_at' => ['date' => true], + 'amount', + 'currency_code' => [ + 'route' => 'currencies.index' + ], + 'contact_id' => [ + 'route' => 'vendors.index' + ], + 'contact_name' => ['searchable' => true], + 'contact_email' => ['searchable' => true], + 'contact_tax_number', + 'contact_phone' => ['searchable' => true], + 'contact_address' => ['searchable' => true], + 'category_id' => [ + 'route' => 'categories.index' + ], + 'parent_id', + ], + ], + + App\Models\Sale\Invoice::class => [ + 'columns' => [ + 'document_number' => ['searchable' => true], + 'order_number' => ['searchable' => true], + 'status', + 'issued_at' => ['date' => true], + 'due_at' => ['date' => true], + 'amount', + 'currency_code' => [ + 'route' => 'currencies.index' + ], + 'contact_id' => [ + 'route' => 'customers.index' + ], + 'contact_name' => ['searchable' => true], + 'contact_email' => ['searchable' => true], + 'contact_tax_number', + 'contact_phone' => ['searchable' => true], + 'contact_address' => ['searchable' => true], + 'category_id' => [ + 'route' => 'categories.index' + ], + 'parent_id', + ], + ], + App\Models\Setting\Category::class => [ 'columns' => [ 'name' => ['searchable' => true],