mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
Fix recurring invoice search
This commit is contained in:
parent
056dc1eaba
commit
3f06e46762
@ -160,7 +160,10 @@ class InvoiceRepository extends BaseRepository
|
|||||||
if ($filter) {
|
if ($filter) {
|
||||||
$query->where(function ($query) use ($filter) {
|
$query->where(function ($query) use ($filter) {
|
||||||
$query->where('clients.name', 'like', '%'.$filter.'%')
|
$query->where('clients.name', 'like', '%'.$filter.'%')
|
||||||
->orWhere('invoices.invoice_number', 'like', '%'.$filter.'%');
|
->orWhere('invoices.invoice_number', 'like', '%'.$filter.'%')
|
||||||
|
->orWhere('contacts.first_name', 'like', '%'.$filter.'%')
|
||||||
|
->orWhere('contacts.last_name', 'like', '%'.$filter.'%')
|
||||||
|
->orWhere('contacts.email', 'like', '%'.$filter.'%');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user