mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-07 02:24:33 -04:00
Fixes for deleted clients in reports
This commit is contained in:
parent
50e211104d
commit
c27d5ad8e9
@ -57,6 +57,9 @@ class InvoiceExport extends BaseExport
|
|||||||
$query = Invoice::query()
|
$query = Invoice::query()
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
->with('client')
|
->with('client')
|
||||||
|
->whereHas('client', function ($q){
|
||||||
|
$q->where('is_deleted', false);
|
||||||
|
})
|
||||||
->where('company_id', $this->company->id)
|
->where('company_id', $this->company->id)
|
||||||
->where('is_deleted', $this->input['include_deleted'] ?? false);
|
->where('is_deleted', $this->input['include_deleted'] ?? false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user