Add company_id to invoices table. Create action search_invoices  to companies controller. Apply route. Mock search_invoices view.
Remove edit and delete invoice from search_invoice view. Add delete invoice to invoice show if user is owner.
Paginate invoices on search_invoices page.
Create simple search form to find invoices by id. Use Kaminari.paginate_array wrapper to paginate results.