8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 22:22:26 +00:00

Invalide la facture Comnpay avant de continuer le paiement.

This commit is contained in:
Hugo LEVY-FALK 2018-07-02 15:01:34 +02:00
parent 2845c49ac1
commit 4da804bfe7

View file

@ -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)