[adh glissantes] On passe à 5 € par mois.

This commit is contained in:
Pierre-Elliott Bécue 2014-08-28 13:54:48 +02:00
parent 3436dfb52f
commit 1ba38acb02
2 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

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