From c035723e542233c2da34b47985645c5ffac66c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Tue, 1 Sep 2015 19:44:40 +0200 Subject: [PATCH] =?UTF-8?q?Laisse=20la=20possibilit=C3=A9=20de=20connecter?= =?UTF-8?q?=20si=20adh=C3=A9sion=20finit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Mais explicite le caractère non-réadhérant de la chose. --- gestion/gest_crans.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index c3da3ae7..b18b6289 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1617,12 +1617,13 @@ def set_connexion(proprio): newEnd = fromGeneralizedTimeFormat(facture._data.get('finConnexion', ["19700101000000Z"])[0]) if newEnd > adhEnd: 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) - dialog(arg) - facture._set('finConnexion', []) - facture._set('debutConnexion', []) - facture.supprime(pop=True) - break + 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) + annul, res = dialog(arg) + if annul: + facture._set('finConnexion', []) + facture._set('debutConnexion', []) + facture.supprime(pop=True) + break if not facture.modePaiement(): arg = u'--title "Mode de paiement pour la connexion de %s" ' % (proprio.Nom(),)