Affichage des factures

This commit is contained in:
Valentin Samir 2013-11-20 17:18:48 +01:00
parent 2940dae3b8
commit 16deec183d
3 changed files with 24 additions and 0 deletions

View file

@ -70,6 +70,10 @@ def adherent(adherent, params):
params=proprio(adherent, params)
return template().get_template("adherent").render(params)
def facture(facture, params):
params['o']=facture
return template().get_template("facture").render(params)
def sprint(object, limit=5):
params={'limit':limit}
from lc_ldap import objets
@ -79,6 +83,8 @@ def sprint(object, limit=5):
return adherent(object, params)
elif isinstance(object, objets.club):
return club(object, params)
elif isinstance(object, objets.facture):
return facture(object, params)
else:
return str(object)

View file

@ -0,0 +1,9 @@
{{["fid=",o.fid.0]|join|coul('bleu')}} {{"À : "|coul('gras')}}{{o.proprio().prenom|join(' ')}} {{o.proprio().nom|join(' ')}} ({{o.proprio().aid.0}})
{% if o.article %}
{{"Article : "|coul('gras')}}{{o.article|join('\n ')}}
{% endif %}
{{"Mode de Paiement : "|coul('gras')}}{{o.modePaiement|join(', ')}}
{% if o.recuPaiement %}
{{"Paiement reçu : "|coul('gras')}}{{o.recuPaiement|join(', ')}} {{"(OK)"|coul('vert')}}
{% endif %}
{% include 'object' %}