mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 20:03:11 +00:00
Invalide la facture Comnpay avant de continuer le paiement.
This commit is contained in:
parent
2845c49ac1
commit
4da804bfe7
1 changed files with 2 additions and 0 deletions
|
@ -26,5 +26,7 @@ class ComnpayPayment(models.Model):
|
||||||
)
|
)
|
||||||
|
|
||||||
def end_payment(self, invoice, request):
|
def end_payment(self, invoice, request):
|
||||||
|
invoice.valid = False
|
||||||
|
invoice.save()
|
||||||
content = comnpay(invoice, request)
|
content = comnpay(invoice, request)
|
||||||
return render(request, 'cotisations/payment.html', content)
|
return render(request, 'cotisations/payment.html', content)
|
||||||
|
|
Loading…
Reference in a new issue