Fix mails when the user or the club has a negative balance
This commit is contained in:
parent
2b70a05a9e
commit
eaf256b1b6
3 changed files with 9 additions and 8 deletions
|
|
@ -6,11 +6,11 @@
|
|||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Passage en négatif (compte n°{{ note.user.pk }})</title>
|
||||
<title>Passage en négatif (compte n°{{ note.pk }})</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Bonjour {{ note }},
|
||||
Bonjour {% if note.user %}{{ note.user }}{% else %}{{ note.club.name }}{% endif %},
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
<p>
|
||||
Si tu ne comprends pas ton solde, tu peux consulter ton historique
|
||||
sur <a href="https://{{ "NOTE_URL"|getenv }}{% url "member:user_detail" pk=note.user.pk %}">ton compte</a>.
|
||||
sur <a href="https://{{ "NOTE_URL"|getenv }}{% if note.user %}{% url "member:user_detail" pk=note.user.pk %}{% else %}{% url "member:club_detail" pk=note.club.pk %}{% endif %}">ton compte</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
{% load getenv %}
|
||||
{% load i18n %}
|
||||
|
||||
Bonjour {{ note }},
|
||||
Bonjour {% if note.user %}{{ note.user }}{% else %}{{ note.club.name }}{% endif %},
|
||||
|
||||
Ce mail t'a été envoyé parce que le solde de ta Note Kfet
|
||||
{{ note }} est négatif !
|
||||
|
|
@ -13,7 +13,7 @@ Par ailleurs, le BDE ne sert pas d'alcool aux adhérents dont le solde
|
|||
est inférieur à 0 € depuis plus de 24h.
|
||||
|
||||
Si tu ne comprends pas ton solde, tu peux consulter ton historique
|
||||
sur ton compte {{ "NOTE_URL"|getenv }}{% url "member:user_detail" pk=note.user.pk %}
|
||||
sur ton compte {{ "NOTE_URL"|getenv }}{% if note.user %}{% url "member:user_detail" pk=note.user.pk %}{% else %}{% url "member:club_detail" pk=note.club.pk %}{% endif %}
|
||||
|
||||
Tu peux venir recharger ta note rapidement à la Kfet, ou envoyer un mail à
|
||||
la trésorerie du BdE (tresorerie.bde@lists.crans.org) pour payer par
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue