From f5fafb96e053539840d66b622ea68e738dd8dfa8 Mon Sep 17 00:00:00 2001 From: detraz Date: Sat, 8 Sep 2018 21:11:42 +0200 Subject: [PATCH] =?UTF-8?q?Les=20factures=20sont=20valid=C3=A9es=20en=20po?= =?UTF-8?q?st=5Fpaiement=20+=20bug=20fix=20paiement=20relation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cotisations/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cotisations/views.py b/cotisations/views.py index 9241f209..4cd76f93 100644 --- a/cotisations/views.py +++ b/cotisations/views.py @@ -836,7 +836,6 @@ def credit_solde(request, user, **_kwargs): else: price_ok = True if price_ok: - invoice.valid = True invoice.save() Vente.objects.create( facture=invoice, @@ -852,6 +851,6 @@ def credit_solde(request, user, **_kwargs): 'balance': user.solde, 'title': _("Refill your balance"), 'action_name': _("Pay"), - 'max_balance': p.payment_method.maximum_balance, + 'max_balance': find_payment_method(p).maximum_balance, }, 'cotisations/facture.html', request)