Browse Source

fix: 🐛 Fix send_mail_voucher function

release-2.9
Yoann Piétri 5 years ago
committed by Gabriel Detraz
parent
commit
6558cfc1eb
  1. 4
      cotisations/utils.py

4
cotisations/utils.py

@ -105,8 +105,8 @@ def send_mail_voucher(invoice, request=None):
"lastname": invoice.user.surname, "lastname": invoice.user.surname,
"email": invoice.user.email, "email": invoice.user.email,
"phone": invoice.user.telephone, "phone": invoice.user.telephone,
"date_end": invoice.get_subscription().latest("date_end").date_end_memb, "date_end": invoice.get_subscription().latest("date_end_memb").date_end_memb,
"date_begin": invoice.get_subscription().earliest("date_start").date_start_memb, "date_begin": invoice.get_subscription().earliest("date_start_memb").date_start_memb,
} }
templatename = CotisationsOption.get_cached_value( templatename = CotisationsOption.get_cached_value(
"voucher_template" "voucher_template"

Loading…
Cancel
Save