Updated code to get paid invoices