From 12af239f64534bc643ad8cd1c2292fae687aa1ab Mon Sep 17 00:00:00 2001 From: klafyvel Date: Sun, 17 Jun 2018 15:04:05 +0200 Subject: [PATCH] Revert "Fix les erreurs d'affichage lors du paiement" This reverts commit 9cae582201be7ac734142a90e3d47e6b7645a869 --- cotisations/payment.py | 2 +- cotisations/templates/cotisations/recharge.html | 2 +- cotisations/views.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cotisations/payment.py b/cotisations/payment.py index 2fa8be3b..b03e1c55 100644 --- a/cotisations/payment.py +++ b/cotisations/payment.py @@ -129,7 +129,7 @@ def comnpay(facture, request): facture.prix(), idTransaction=str(facture.id) ), - 'amount': facture.prix(), + 'amount': facture.prix, } return r diff --git a/cotisations/templates/cotisations/recharge.html b/cotisations/templates/cotisations/recharge.html index 6f4e9d9c..196de2ca 100644 --- a/cotisations/templates/cotisations/recharge.html +++ b/cotisations/templates/cotisations/recharge.html @@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,

{% trans "Balance refill" %}

{% blocktrans %} - Balance : {{ solde }} € + Balance : {{ request.user.solde }} € {% endblocktrans %}

diff --git a/cotisations/views.py b/cotisations/views.py index 3db5f220..47076c8f 100644 --- a/cotisations/views.py +++ b/cotisations/views.py @@ -870,6 +870,5 @@ def recharge(request): ](invoice, request) return render(request, 'cotisations/payment.html', content) return form({ - 'rechargeform': refill_form, - 'solde': request.user.solde + 'rechargeform': refill_form }, 'cotisations/recharge.html', request)