From a7320248529c58df0ede90bee65a004c3905e722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Thu, 1 Oct 2015 00:09:26 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20r=C3=A9f=C3=A9rences=20=C3=A0=20l'?= =?UTF-8?q?aid/cid=20dans=20l'affichage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tresorerie/controle_rapide.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tresorerie/controle_rapide.py b/tresorerie/controle_rapide.py index 5c60efba..4566c1f3 100755 --- a/tresorerie/controle_rapide.py +++ b/tresorerie/controle_rapide.py @@ -165,9 +165,11 @@ def format_facture(facture): dialog=True ), affichage.style( - u"%s %s" % ( + u"%s %s [%sid=%s]" % ( proprietaire.get('prenom', [u"Club"])[0], - proprietaire['nom'][0] + proprietaire['nom'][0], + u'a' if proprietaire.has_key("aid") else u"c", + proprietaire.get('aid', proprietaire.get('cid', [u'n/a']))[0], ), STYLES['proprio'], dialog=True),