diff --git a/gestion/whos.py b/gestion/whos.py index d2db9df5..0d3c456b 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -296,17 +296,17 @@ def factures_brief(factures) : data.append([ facture.id(), p, - ', '.join(article['code'] for article in facture.articles()), facture.modePaiement(), coul(facture.recuPaiement(), "vert") if facture.recuPaiement() else coul("NON", "rouge"), controle, + ', '.join(article['code'] for article in facture.articles()), unicode(facture.total()) + u" €", ]) 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, 18, '*', 8, 19, 8, 8], + titre = [u'fid', u'Propriétaire', u'Mode de paiement', u'Reçu', u"Contrôle", u'Articles', u"Total"], + largeur = [5, 18, 8, 19, 10, '*', 8], alignement = ['d', 'g', 'g', 'c', 'c', 'g', 'd'] ) @@ -424,15 +424,15 @@ def list_factures(factures) : data.append([ f.id(), f.modePaiement(), - coul("OK", "vert") if f.recuPaiement() else coul("NON", "rouge"), + coul(f.recuPaiement(), "vert") if f.recuPaiement() else coul("NON", "rouge"), controle, ', '.join(a['code'] for a in f.articles()), u"%s€" % sum([float(a['pu'])*int(a['nombre']) for a in f.articles()]) ]) return tableau(data, - titre = [u'fid', u'Mode de paiement', u'Payé', u"Contrôle", u'Articles', u"Total"], - largeur = [5, 16, 6, 10, '*', 8], + titre = [u'fid', u'Mode de paiement', u'Reçu', u"Contrôle", u'Articles', u"Total"], + largeur = [5, 16, 19, 10, '*', 8], alignement = ['d', 'g', 'c', 'c', 'g', 'd']) def list_spec(machines) :