diff --git a/smash/web/models/mail_template.py b/smash/web/models/mail_template.py index 4a7b0ff564d3d8f8cedbd9b03eaf34ff3a63b3d6..333537aed9f8baedd4f8bde400b5692839abc012 100644 --- a/smash/web/models/mail_template.py +++ b/smash/web/models/mail_template.py @@ -293,11 +293,11 @@ class MailTemplate(models.Model): if voucher is not None: voucher_type = voucher.voucher_type.description if voucher.activity_type != '': - voucher_type += ' ' + voucher.activity_type + voucher_type += ' (' + voucher.activity_type + ")" return { "##C_NUMBER##": voucher.number, "##C_PATIENT_NAME##": voucher.study_subject.subject.first_name + ' ' + voucher.study_subject.subject.last_name, - "##C_VOUCHER_TYPE##": voucher.voucher_type.description, + "##C_VOUCHER_TYPE##": voucher_type, "##C_ISSUE_DATE_SHORT##": voucher.issue_date.strftime(DATE_FORMAT_SHORT).decode(date_format_encoding()), "##C_EXPIRY_START_SHORT##": voucher.expiry_date.strftime(DATE_FORMAT_SHORT).decode( date_format_encoding()),