with some help I manage to create a plugin to attach, on the finished order email, an invoice.
add_filter( \'woocommerce_email_attachments\', \'attach_terms_c