method to get all invoices