[printing] La liste des factures affiche maintenant la date du reçu.
This commit is contained in:
parent
c605009984
commit
50efa40d8c
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ def list_factures(factures, width=None):
|
|||
data.append([
|
||||
facture['fid'][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,
|
||||
' '.join(attr['code'] for attr 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(
|
||||
data,
|
||||
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'],
|
||||
width=width)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue