mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Show expenses for archived clients/vendors
This commit is contained in:
parent
d5974b45b2
commit
0b7621bd7d
@ -54,8 +54,8 @@ class ExpenseRepository extends BaseRepository
|
|||||||
->leftJoin('expense_categories', 'expenses.expense_category_id', '=', 'expense_categories.id')
|
->leftJoin('expense_categories', 'expenses.expense_category_id', '=', 'expense_categories.id')
|
||||||
->where('expenses.account_id', '=', $accountid)
|
->where('expenses.account_id', '=', $accountid)
|
||||||
->where('contacts.deleted_at', '=', null)
|
->where('contacts.deleted_at', '=', null)
|
||||||
->where('vendors.deleted_at', '=', null)
|
//->where('vendors.deleted_at', '=', null)
|
||||||
->where('clients.deleted_at', '=', null)
|
//->where('clients.deleted_at', '=', null)
|
||||||
->where(function ($query) { // handle when client isn't set
|
->where(function ($query) { // handle when client isn't set
|
||||||
$query->where('contacts.is_primary', '=', true)
|
$query->where('contacts.is_primary', '=', true)
|
||||||
->orWhere('contacts.is_primary', '=', null);
|
->orWhere('contacts.is_primary', '=', null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user