WIP: contrôle cotisation

This commit is contained in:
Adrien Bourmault 2022-09-15 00:32:39 +02:00
parent 06cca0f5a2
commit 884be4efd7
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 4 additions and 2 deletions

View File

@ -229,7 +229,8 @@ 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)
mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS).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) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email)
sendmail(mailheaders, mailtext) sendmail(mailheaders, mailtext)
@ -251,7 +252,8 @@ def renotify_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)
mailheaders = get_file_content_all(MODALITY_MAIL_HEADERS).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) mailheaders = mailheaders.replace("COURRIEL-COTISANT", email)
sendmail(mailheaders, mailtext) sendmail(mailheaders, mailtext)