8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-21 19:03:11 +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
parent fec11de740
commit 6dc530830a
Signed by: nanoy
GPG key ID: DC24C5787C943389

View file

@ -1057,7 +1057,7 @@ def voucher_pdf(request, invoice, **_kwargs):
"lastname": invoice.user.surname,
"email": invoice.user.email,
"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,
},
)