1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00

Fix recurring invoice search

This commit is contained in:
Hillel Coren 2016-12-19 11:48:33 +02:00
parent 056dc1eaba
commit 3f06e46762

View File

@ -160,7 +160,10 @@ class InvoiceRepository extends BaseRepository
if ($filter) {
$query->where(function ($query) use ($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.'%');
});
}