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', [])