Laisse la possibilité de connecter si adhésion finit.

* Mais explicite le caractère non-réadhérant de la chose.
This commit is contained in:
Pierre-Elliott Bécue 2015-09-01 19:44:40 +02:00
parent 6f21fde1ea
commit c035723e54

View file

@ -1617,8 +1617,9 @@ def set_connexion(proprio):
newEnd = fromGeneralizedTimeFormat(facture._data.get('finConnexion', ["19700101000000Z"])[0]) newEnd = fromGeneralizedTimeFormat(facture._data.get('finConnexion', ["19700101000000Z"])[0])
if newEnd > adhEnd: if newEnd > adhEnd:
arg = u'--title "Avertissement" ' arg = u'--title "Avertissement" '
arg += u'--msgbox "La nouvelle fin de connexion (%s) arriverait après la fin de l\'adhésion actuelle (%s).\nIl faut que l\'adhérent réadhère. (possible %s jours avant la fin de l\'adhésion actuelle)" 0 0 ' % (strftime("%d/%m/%Y %H:%M:%S", localtime(newEnd)), strftime("%d/%m/%Y %H:%M:%S", localtime(adhEnd)), cotisation.delai_readh_jour) arg += u'--yesno "La nouvelle fin de connexion (%s) arriverait après la fin de l\'adhésion actuelle (%s).\nIl sera nécessaire que l\'adhérent réadhère, (possible %s jours avant la fin de l\'adhésion actuelle).\n\nLe paiement ne vaut *PAS* réadhésion. Merci de lui préciser explicitement !" 0 0 ' % (strftime("%d/%m/%Y %H:%M:%S", localtime(newEnd)), strftime("%d/%m/%Y %H:%M:%S", localtime(adhEnd)), cotisation.delai_readh_jour)
dialog(arg) annul, res = dialog(arg)
if annul:
facture._set('finConnexion', []) facture._set('finConnexion', [])
facture._set('debutConnexion', []) facture._set('debutConnexion', [])
facture.supprime(pop=True) facture.supprime(pop=True)