Adhésions glissantes : bugfixes.
This commit is contained in:
parent
150a270bbd
commit
9872e0bcf0
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
###############################################################
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue