WIP: contrôle cotisation
This commit is contained in:
parent
bda6c17d1b
commit
5d721e2783
|
@ -203,10 +203,10 @@ def notify_unpaid(member):
|
||||||
|
|
||||||
# Get member infos
|
# Get member infos
|
||||||
name, numero, email = get_member_infos(member)
|
name, numero, email = get_member_infos(member)
|
||||||
amount = gestion_get_amount(member)
|
amount = "{},{}".format(str(gestion_get_amount(member))[:-2],
|
||||||
print(amount)
|
str(gestion_get_amount(member))[-2:])
|
||||||
|
|
||||||
BUF.append("* {} (numero {}), {}, {}".format(member, numero, name, amount))
|
BUF.append("* {} (numero {}), {}, {} €".format(member, numero, name, amount))
|
||||||
BUF.append(" NOTIFICATION MEMBRE")
|
BUF.append(" NOTIFICATION MEMBRE")
|
||||||
BUF.append("")
|
BUF.append("")
|
||||||
return True
|
return True
|
||||||
|
@ -228,7 +228,7 @@ def check_expired_unpaid():
|
||||||
|
|
||||||
# Check expired members
|
# Check expired members
|
||||||
if set(expired_members) != set(os.listdir(WORKDIR+"/expiré")):
|
if set(expired_members) != set(os.listdir(WORKDIR+"/expiré")):
|
||||||
BUF.append("Membres expirés : {}".format(gestion_get_expired()))
|
BUF.append("Membres expirés : {}\n".format(gestion_get_expired()))
|
||||||
|
|
||||||
# Check for no-more-expired members
|
# Check for no-more-expired members
|
||||||
for record in os.listdir(WORKDIR+"/expiré"):
|
for record in os.listdir(WORKDIR+"/expiré"):
|
||||||
|
@ -244,7 +244,7 @@ def check_expired_unpaid():
|
||||||
|
|
||||||
# Check unpaid members
|
# Check unpaid members
|
||||||
if set(unpaid_members) != set(os.listdir(WORKDIR+"/impayé")):
|
if set(unpaid_members) != set(os.listdir(WORKDIR+"/impayé")):
|
||||||
BUF.append("Membres en impayé : {}".format(gestion_get_unpaid()))
|
BUF.append("Membres en impayé : {}\n".format(gestion_get_unpaid()))
|
||||||
|
|
||||||
# Check for no-more-unpaid members
|
# Check for no-more-unpaid members
|
||||||
for record in os.listdir(WORKDIR+"/impayé"):
|
for record in os.listdir(WORKDIR+"/impayé"):
|
||||||
|
|
Loading…
Reference in New Issue