From 9872e0bcf0c31cf8132b382cc06892e1132220be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sun, 17 Aug 2014 00:26:24 +0200 Subject: [PATCH] =?UTF-8?q?Adh=C3=A9sions=20glissantes=20:=20bugfixes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/gest_crans.py | 5 ++++- gestion/whos.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 8088b778..c44e9baf 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1475,6 +1475,7 @@ def set_connexion(proprio): continue else: nb_mois = res + back = False break if back: continue @@ -1500,7 +1501,7 @@ def set_connexion(proprio): facture.supprime(pop=True) continue - if not f.modePaiement(): + if not facture.modePaiement(): arg = u'--title "Mode de paiement pour la connexion de %s" ' % (proprio.Nom(),) arg += u'--menu "Comment %s souhaite-t-il payer ?" 0 0 0 ' % (proprio.Nom(), ) arg += u'"Liquide" "En espèces : penser à mettre l\'argent dans une enveloppe." ' @@ -1523,6 +1524,8 @@ def set_connexion(proprio): else: facture.modePaiement(res.lower()) break + else: + break in_facture = facture ############################################################### diff --git a/gestion/whos.py b/gestion/whos.py index 125773cf..6e292763 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -592,7 +592,7 @@ def adher_details(adher) : # Paiement if adher.connexion() > time(): - f += coul(u"Connexion jusqu'au %s" % strftime("%d/%m/%Y %H:%M:%S", localtime(adher.adhesion())), "vert") + f += coul(u"Connexion jusqu'au %s" % strftime("%d/%m/%Y %H:%M:%S", localtime(adher.connexion())), "vert") if adher.adhesion() < adher.connexion(): f += coul(u"(Théoriquement %s, sous réserve de réadhésion)" % (strftime("%d/%m/%Y %H:%M:%S", localtime(adher.connexion())),), "rouge") f += u'\n'