Fixed bug. Invoices created by secretary, who is not able to check an invoice, were not setting the checked boolean. To make sure they showed up on the index i added an extra query