8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-09-12 01:03:09 +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 57c8411d7e
commit 10a54639b6

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)