Client / Invoice query updates to include trashed records
This commit is contained in:
parent
5fd7b63093
commit
99342b1b88
|
|
@ -280,6 +280,7 @@ class SearchController extends Controller
|
|||
{
|
||||
|
||||
$clients = Client::query()
|
||||
->withTrashed()
|
||||
->company()
|
||||
->where('is_deleted', 0)
|
||||
->when(!$user->hasPermission('view_all') || !$user->hasPermission('view_client'), function ($query) use ($user) {
|
||||
|
|
@ -314,6 +315,7 @@ class SearchController extends Controller
|
|||
{
|
||||
|
||||
$invoices = Invoice::query()
|
||||
->withTrashed()
|
||||
->company()
|
||||
->with('client')
|
||||
->where('is_deleted', 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue