Commit 4da804bf authored by Levy--Falk Hugo's avatar Levy--Falk Hugo

Invalide la facture Comnpay avant de continuer le paiement.

parent 2845c49a
......@@ -26,5 +26,7 @@ class ComnpayPayment(models.Model):
)
def end_payment(self, invoice, request):
invoice.valid = False
invoice.save()
content = comnpay(invoice, request)
return render(request, 'cotisations/payment.html', content)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment