cotisation : correction référence absente (corrige #2)

This commit is contained in:
Adrien Bourmault 2023-11-04 15:22:54 +01:00
parent fe1398ac7a
commit d120300cd1
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 5 additions and 0 deletions

View File

@ -369,6 +369,11 @@ def validate(member):
str(answer["amount"])[:-2],
str(answer["amount"])[-2:]))
latexfile = latexfile.replace("DATE-VERSEMENT", date)
if not answer["true_reference"]:
BUF.append("Erreur : référence introuvable (déféré)")
return
latexfile = latexfile.replace("MODE-VERSEMENT", answer["true_reference"])
try: