mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 23:43:47 +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):
|
||||
invoice.valid = False
|
||||
invoice.save()
|
||||
content = comnpay(invoice, request)
|
||||
return render(request, 'cotisations/payment.html', content)
|
||||
|
|
Loading…
Reference in a new issue