From c4de365c03d035e809ea2ab20c0731dc77992027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Fri, 29 Aug 2014 23:12:19 +0200 Subject: [PATCH] Quelques corrections. --- gestion/gest_crans.py | 2 +- gestion/whos.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index c298f031..41109289 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1149,7 +1149,7 @@ def confirm(clas): in_facture.save() except Exception as c: arg = u'--title "Enregistrement" ' - arg += u'--msgbox "%s\n\n\n" 0 0' % to_unicode(c.args[0]) + arg += u'--msgbox "%s\n\n\n" 0 0' % to_unicode(unicode(c.args[0])) dialog(arg) return 1 in_facture = None diff --git a/gestion/whos.py b/gestion/whos.py index b326afe0..472c2f95 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -307,7 +307,7 @@ def factures_brief(factures) : p, ', '.join(article['code'] for article in facture.articles()), facture.modePaiement(), - coul("OK", "vert") if facture.recuPaiement() else coul("NON", "rouge"), + coul(facture.recuPaiement(), "vert") if facture.recuPaiement() else coul("NON", "rouge"), controle, unicode(facture.total()) + u" €", ]) @@ -315,7 +315,7 @@ def factures_brief(factures) : return u"Le propriétaire en rouge signale un problème administratif.\n" + \ tableau(data, titre = [u'fid', u'Propriétaire', u'Articles', u'Mode de paiement', u'Payé', u"Contrôle", u"Total"], - largeur = [5, 16, '*', 16, 10, 10, 8], + largeur = [5, 16, '*', 16, 19, 10, 8], alignement = ['d', 'g', 'g', 'c', 'c', 'g', 'd'] )