8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 03:13:12 +00:00

fix: 🐛 Fix voucher_pdf function (#315)

Replace date_end by date_end_memb in voucher_pdf. Close #315
This commit is contained in:
Yoann Pétri 2021-01-13 15:31:29 +01:00 committed by Gabriel Detraz
parent 9abd329e16
commit db929676e2

View file

@ -1057,7 +1057,7 @@ def voucher_pdf(request, invoice, **_kwargs):
"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, "date_end": invoice.get_subscription().latest("date_end_memb").date_end_memb,
"date_begin": invoice.date, "date_begin": invoice.date,
}, },
) )