Renotification cotisation

This commit is contained in:
Adrien Bourmault 2022-09-15 10:36:03 +02:00
parent 31fb947459
commit 22218fabdc
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 3 additions and 1 deletions

View File

@ -229,6 +229,7 @@ def notify_unpaid(member):
mailtext = mailtext.replace("NOM_COTISANT", name) mailtext = mailtext.replace("NOM_COTISANT", name)
mailtext = mailtext.replace("NUMERO_MEMBRE", str(numero)) mailtext = mailtext.replace("NUMERO_MEMBRE", str(numero))
mailtext = mailtext.replace("MONTANT_COTISATION", amount) mailtext = mailtext.replace("MONTANT_COTISATION", amount)
mailtext = mailtext.replace("ANNEE_CIVILE", year)
mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS) + "\n" mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS) + "\n"
mailheaders = mailheaders.replace("ANNEE_CIVILE", year) mailheaders = mailheaders.replace("ANNEE_CIVILE", year)
mailheaders = mailheaders.replace("COURRIEL-COTISANT", email) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email)
@ -245,13 +246,14 @@ def renotify_unpaid(member):
year = gestion_get_date(member)[:4] year = gestion_get_date(member)[:4]
BUF.append("* {} (numero {}), {}, {}".format(member, numero, name, amount)) BUF.append("* {} (numero {}), {}, {}".format(member, numero, name, amount))
BUF.append(" NOTIFICATION MEMBRE") BUF.append(" RENOTIFICATION MEMBRE")
BUF.append("") BUF.append("")
mailtext = get_file_content_all(MODALITY_MAIL) + "\n" mailtext = get_file_content_all(MODALITY_MAIL) + "\n"
mailtext = mailtext.replace("NOM_COTISANT", name) mailtext = mailtext.replace("NOM_COTISANT", name)
mailtext = mailtext.replace("NUMERO_MEMBRE", str(numero)) mailtext = mailtext.replace("NUMERO_MEMBRE", str(numero))
mailtext = mailtext.replace("MONTANT_COTISATION", amount) mailtext = mailtext.replace("MONTANT_COTISATION", amount)
mailtext = mailtext.replace("ANNEE_CIVILE", year)
mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS) + "\n" mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS) + "\n"
mailheaders = mailheaders.replace("ANNEE_CIVILE", year) mailheaders = mailheaders.replace("ANNEE_CIVILE", year)
mailheaders = mailheaders.replace("COURRIEL-COTISANT", email) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email)