Quelques corrections.
This commit is contained in:
parent
c0ace05c79
commit
c4de365c03
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue