From 9d21a9b5978d31150b42b90abb07e27e1d3625ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Tue, 9 Dec 2014 21:44:24 +0100 Subject: [PATCH] =?UTF-8?q?Le=20nombre=20de=20mois=20de=20connexion=20doit?= =?UTF-8?q?=20=C3=AAtre=20augment=C3=A9=20=C3=A0=20un=20an=20s'il=20d?= =?UTF-8?q?=C3=A9passe=20le=20plafond=20de=20cotis.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/ldap_crans.py | 3 +++ 1 file changed, 3 insertions(+) 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