After an invoice has been opened, generates the configured report, attach it, and post an email to customer.