Fixes for deleted clients in reports

This commit is contained in:
David Bomba 2024-04-25 18:28:43 +10:00
parent 50e211104d
commit c27d5ad8e9

View File

@ -57,6 +57,9 @@ class InvoiceExport extends BaseExport
$query = Invoice::query()
->withTrashed()
->with('client')
->whereHas('client', function ($q){
$q->where('is_deleted', false);
})
->where('company_id', $this->company->id)
->where('is_deleted', $this->input['include_deleted'] ?? false);