mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
Invalide la facture Comnpay avant de continuer le paiement.
This commit is contained in:
parent
57c8411d7e
commit
10a54639b6
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