diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 19faebed..7ef45d59 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2384,6 +2384,9 @@ class Adherent(BaseProprietaire): else: ftime = max(finConn, thetime) + if mois >= cotisation.duree_conn_plafond: + mois = 12 + # Calcul de la nouvelle date de fin d'adhésion. curyear = datetime.datetime.now().year curmonth = datetime.datetime.now().month