From 22218fabdcaf6d02233b11d39731a4a7717077bf Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 15 Sep 2022 10:36:03 +0200 Subject: [PATCH] Renotification cotisation --- controle_cotisation/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index 887a5cb..dcedd71 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -229,6 +229,7 @@ def notify_unpaid(member): mailtext = mailtext.replace("NOM_COTISANT", name) mailtext = mailtext.replace("NUMERO_MEMBRE", str(numero)) mailtext = mailtext.replace("MONTANT_COTISATION", amount) + mailtext = mailtext.replace("ANNEE_CIVILE", year) mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS) + "\n" mailheaders = mailheaders.replace("ANNEE_CIVILE", year) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email) @@ -245,13 +246,14 @@ def renotify_unpaid(member): year = gestion_get_date(member)[:4] BUF.append("* {} (numero {}), {}, {} €".format(member, numero, name, amount)) - BUF.append(" NOTIFICATION MEMBRE") + BUF.append(" RENOTIFICATION MEMBRE") BUF.append("") mailtext = get_file_content_all(MODALITY_MAIL) + "\n" mailtext = mailtext.replace("NOM_COTISANT", name) mailtext = mailtext.replace("NUMERO_MEMBRE", str(numero)) mailtext = mailtext.replace("MONTANT_COTISATION", amount) + mailtext = mailtext.replace("ANNEE_CIVILE", year) mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS) + "\n" mailheaders = mailheaders.replace("ANNEE_CIVILE", year) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email)