[printing] La liste des factures affiche maintenant la date du reçu.

This commit is contained in:
Pierre-Elliott Bécue 2014-09-11 01:12:48 +02:00
parent c605009984
commit 50efa40d8c

View file

@ -141,7 +141,7 @@ def list_factures(factures, width=None):
data.append([ data.append([
facture['fid'][0], facture['fid'][0],
facture['modePaiement'][0], facture['modePaiement'][0],
style("OK", "vert") if facture.get('recuPaiement', []) else style("NON", "rouge"), style(facture.get('recuPaiement', [])[0], "vert") if facture.get('recuPaiement', []) else style("NON", "rouge"),
controle, controle,
' '.join(attr['code'] for attr in facture.get('article',[])), ' '.join(attr['code'] for attr in facture.get('article',[])),
u"%s €" % sum([float(a['pu'])*int(a['nombre']) for a in facture.get('article',[])]) u"%s €" % sum([float(a['pu'])*int(a['nombre']) for a in facture.get('article',[])])
@ -149,7 +149,7 @@ def list_factures(factures, width=None):
return tableau( return tableau(
data, data,
titre = [u'fid', u'Mode de paiement', u'Payé', u'Contrôle', u'Articles', u"Total"], titre = [u'fid', u'Mode de paiement', u'Payé', u'Contrôle', u'Articles', u"Total"],
largeur = [5, 16, 6, 8, '*', 8], largeur = [5, 16, 19, 8, '*', 8],
alignement = ['d', 'g', 'c', 'c', 'g', 'd'], alignement = ['d', 'g', 'c', 'c', 'g', 'd'],
width=width) width=width)