Quelques corrections.

This commit is contained in:
Pierre-Elliott Bécue 2014-08-29 23:12:19 +02:00
parent c0ace05c79
commit c4de365c03
2 changed files with 3 additions and 3 deletions

View file

@ -1149,7 +1149,7 @@ def confirm(clas):
in_facture.save() in_facture.save()
except Exception as c: except Exception as c:
arg = u'--title "Enregistrement" ' 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) dialog(arg)
return 1 return 1
in_facture = None in_facture = None

View file

@ -307,7 +307,7 @@ def factures_brief(factures) :
p, p,
', '.join(article['code'] for article in facture.articles()), ', '.join(article['code'] for article in facture.articles()),
facture.modePaiement(), facture.modePaiement(),
coul("OK", "vert") if facture.recuPaiement() else coul("NON", "rouge"), coul(facture.recuPaiement(), "vert") if facture.recuPaiement() else coul("NON", "rouge"),
controle, controle,
unicode(facture.total()) + u" €", 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" + \ return u"Le propriétaire en rouge signale un problème administratif.\n" + \
tableau(data, tableau(data,
titre = [u'fid', u'Propriétaire', u'Articles', u'Mode de paiement', u'Payé', u"Contrôle", u"Total"], 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'] alignement = ['d', 'g', 'g', 'c', 'c', 'g', 'd']
) )