From aac2a0c4393da052839fc998b8c0e0e084a25976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 13 Apr 2015 02:43:45 +0200 Subject: [PATCH] o.solde ne pointe pas vers l'attribut, mais vers la fonction solde. --- printing/templates/compte_crans | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printing/templates/compte_crans b/printing/templates/compte_crans index 9272113..a516d56 100644 --- a/printing/templates/compte_crans +++ b/printing/templates/compte_crans @@ -8,6 +8,6 @@ {% else %} {{"Jamais"|coul('rouge')}} {% endif %} -{% if o.solde %} -{{"Solde : "|coul('gras')}}{{o.solde.0}}€ +{% if o.get('solde', []) %} +{{"Solde : "|coul('gras')}}{{o.get('solde', [0.0]).0}} € {% endif %}