fix send_via_mail for invoice