[adh glissantes] On passe à 5 € par mois.
This commit is contained in:
parent
3436dfb52f
commit
1ba38acb02
2 changed files with 4 additions and 4 deletions
|
@ -22,9 +22,9 @@ duree_adh_an = 1
|
||||||
cotisation = 10
|
cotisation = 10
|
||||||
|
|
||||||
# Contribution mensuelle pour l'accès à internet.
|
# 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
|
plafond_contribution = 40
|
||||||
|
|
||||||
# Si le compte n'est pas rond, c'est vraiment pas pratique.
|
# Si le compte n'est pas rond, c'est vraiment pas pratique.
|
||||||
|
|
|
@ -1492,9 +1492,9 @@ def set_connexion(proprio):
|
||||||
facture = proprio.connexion(nb_mois, f)
|
facture = proprio.connexion(nb_mois, f)
|
||||||
|
|
||||||
newEnd = fromGeneralizedTimeFormat(facture._data.get('finConnexion', ["19700101000000Z"])[0])
|
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'--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)
|
no, res = dialog(arg)
|
||||||
if no:
|
if no:
|
||||||
facture._set('finConnexion', [])
|
facture._set('finConnexion', [])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue