Refactoring invoices to allow making multiple invoices list for print.