From 1ba38acb02f58098c09255e00b135fb707296767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Thu, 28 Aug 2014 13:54:48 +0200 Subject: [PATCH] =?UTF-8?q?[adh=20glissantes]=20On=20passe=20=C3=A0=205?= =?UTF-8?q?=C2=A0=E2=82=AC=20par=20mois.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/config/cotisation.py | 4 ++-- gestion/gest_crans.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gestion/config/cotisation.py b/gestion/config/cotisation.py index c9903e66..b57f9029 100644 --- a/gestion/config/cotisation.py +++ b/gestion/config/cotisation.py @@ -22,9 +22,9 @@ duree_adh_an = 1 cotisation = 10 # Contribution mensuelle pour l'accès à internet. -contribution = 4 +contribution = 5 -# 10 mois achetés, les deux derniers offerts, on est aussi cools qu'Orange \o. +# 8 mois achetés, les quatre derniers offerts, on est aussi cools qu'Orange \o. plafond_contribution = 40 # Si le compte n'est pas rond, c'est vraiment pas pratique. diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index b49c09ef..998bd5d9 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1492,9 +1492,9 @@ def set_connexion(proprio): facture = proprio.connexion(nb_mois, f) newEnd = fromGeneralizedTimeFormat(facture._data.get('finConnexion', ["19700101000000Z"])[0]) - if newEnd > adhEnd and newEnd - adhEnd >= (cotisation.duree_conn_max - cotisation.duree_conn_plafond)*30*86400: + if newEnd > adhEnd: arg = u'--title "Avertissement" ' - arg += u'--yesno "La fin de la connexion de l\'adhérent (%s) tombera après la fin de son adhésion (%s).\nS\'il veut en profiter, il lui faudra réadhérer. Continuer ?" 0 0' %(strftime('%d/%m/%Y %H:%M:%S', localtime(newEnd)), strftime('%d/%m/%Y %H:%M:%S', localtime(adhEnd)), ) + arg += u'--yesno "La fin de la connexion de l\'adhérent (%s) tombera après la fin de son adhésion (%s).\nS\'il veut en profiter, il lui faudra éventuellement réadhérer. Continuer ?" 0 0' %(strftime('%d/%m/%Y %H:%M:%S', localtime(newEnd)), strftime('%d/%m/%Y %H:%M:%S', localtime(adhEnd)), ) no, res = dialog(arg) if no: facture._set('finConnexion', [])