1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Fixes for query name

This commit is contained in:
David Bomba 2024-06-30 14:45:59 +10:00
parent f1ac238917
commit 3cd1d7767f

View File

@ -282,9 +282,8 @@ abstract class QueryFilters
if($value == 'true')
{
return $this->builder->leftJoin('clients', function($join) {
$join->on('invoices.client_id', '=', 'clients.id')
->where('clients.is_deleted', 0)
->whereNull('clients.deleted_at');
$join->on("{$this->builder->getQuery()->from}.client_id", '=', 'clients.id')
->where('clients.is_deleted', 0);
});
}