method to fetch invoices done