Fixed autocomplete enabled issue

This commit is contained in:
Cüneyt Şentürk
2021-12-01 13:46:23 +03:00
parent 987373b022
commit d2149cbd3b
15 changed files with 42 additions and 41 deletions

View File

@ -74,7 +74,7 @@ return [
'bank_name' => ['searchable' => true],
'bank_address' => ['searchable' => true],
'currency_code' => [
'route' => 'currencies.index'
'route' => ['currencies.index', 'search=enabled:1'],
],
'enabled' => ['boolean' => true],
],
@ -96,12 +96,12 @@ return [
'id',
'type',
'account_id' => [
'route' => 'accounts.index'
'route' => ['accounts.index', 'search=enabled:1'],
],
'paid_at' => ['date' => true],
'amount',
'currency_code' => [
'route' => 'currencies.index'
'route' => ['currencies.index', 'search=enabled:1'],
],
'document_id',
'contact_id',
@ -109,7 +109,7 @@ return [
'payment_method',
'reference',
'category_id' => [
'route' => 'categories.index'
'route' => ['categories.index', 'search=enabled:1'],
],
'parent_id',
'recurring' => [
@ -126,11 +126,11 @@ return [
'id',
'expense_account' => [
'relationship' => true,
'route' => 'accounts.index',
'route' => ['accounts.index', 'search=enabled:1'],
],
'income_account' => [
'relationship' => true,
'route' => 'accounts.index',
'route' => ['accounts.index', 'search=enabled:1'],
],
],
],
@ -159,7 +159,7 @@ return [
'description' => ['searchable' => true],
'enabled' => ['boolean' => true],
'category_id' => [
'route' => ['categories.index', 'search=type:item']
'route' => ['categories.index', 'search=type:item enabled:1']
],
'sales_price',
'purchase_price',
@ -177,7 +177,7 @@ return [
'address' => ['searchable' => true],
'website' => ['searchable' => true],
'currency_code' => [
'route' => 'currencies.index'
'route' => ['currencies.index', 'search=enabled:1'],
],
'reference',
'user_id',
@ -199,7 +199,7 @@ return [
'due_at' => ['date' => true],
'amount',
'currency_code' => [
'route' => 'currencies.index'
'route' => ['currencies.index', 'search=enabled:1'],
],
'contact_id',
'contact_name' => ['searchable' => true],
@ -208,7 +208,7 @@ return [
'contact_phone' => ['searchable' => true],
'contact_address' => ['searchable' => true],
'category_id' => [
'route' => 'categories.index'
'route' => ['categories.index', 'search=enabled:1'],
],
'parent_id',
'recurring' => [
@ -240,10 +240,10 @@ return [
'due_at' => ['date' => true],
'amount',
'currency_code' => [
'route' => 'currencies.index'
'route' => ['currencies.index', 'search=enabled:1'],
],
'contact_id' => [
'route' => 'vendors.index'
'route' => ['vendors.index', 'search=enabled:1'],
],
'contact_name' => ['searchable' => true],
'contact_email' => ['searchable' => true],
@ -251,7 +251,7 @@ return [
'contact_phone' => ['searchable' => true],
'contact_address' => ['searchable' => true],
'category_id' => [
'route' => ['categories.index', 'search=type:expense']
'route' => ['categories.index', 'search=type:expense enabled:1']
],
'parent_id',
'recurring' => [
@ -268,22 +268,22 @@ return [
'id',
'type',
'account_id' => [
'route' => 'accounts.index'
'route' => ['accounts.index', 'search=enabled:1'],
],
'paid_at' => ['date' => true],
'amount',
'currency_code' => [
'route' => 'currencies.index'
'route' => ['currencies.index', 'search=enabled:1'],
],
'document_id',
'contact_id' => [
'route' => 'vendors.index'
'route' => ['vendors.index', 'search=enabled:1'],
],
'description' => ['searchable' => true],
'payment_method',
'reference',
'category_id' => [
'route' => ['categories.index', 'search=type:expense']
'route' => ['categories.index', 'search=type:expense enabled:1']
],
'parent_id',
'recurring' => [
@ -317,10 +317,10 @@ return [
'due_at' => ['date' => true],
'amount',
'currency_code' => [
'route' => 'currencies.index'
'route' => ['currencies.index', 'search=enabled:1'],
],
'contact_id' => [
'route' => 'customers.index'
'route' => ['customers.index', 'search=enabled:1'],
],
'contact_name' => ['searchable' => true],
'contact_email' => ['searchable' => true],
@ -328,7 +328,7 @@ return [
'contact_phone' => ['searchable' => true],
'contact_address' => ['searchable' => true],
'category_id' => [
'route' => ['categories.index', 'search=type:income']
'route' => ['categories.index', 'search=type:income enabled:1']
],
'parent_id',
'recurring' => [
@ -345,22 +345,22 @@ return [
'id',
'type',
'account_id' => [
'route' => 'accounts.index'
'route' => ['accounts.index', 'search=enabled:1'],
],
'paid_at' => ['date' => true],
'amount',
'currency_code' => [
'route' => 'currencies.index'
'route' => ['currencies.index', 'search=enabled:1'],
],
'document_id',
'contact_id' => [
'route' => 'customers.index'
'route' => ['customers.index', 'search=enabled:1'],
],
'description' => ['searchable' => true],
'payment_method',
'reference',
'category_id' => [
'route' => ['categories.index', 'search=type:income']
'route' => ['categories.index', 'search=type:income enabled:1'],
],
'parent_id',
'recurring' => [