format invoices (closed) and closing invoices