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

Merge branch 'cheque-payments-applied-twice' into 'master'

Fix cheque cotisations being saved twice

Closes #236

See merge request federez/re2o!487
This commit is contained in:
chirac 2020-02-15 14:39:38 +01:00
commit 2374a2b4b8

View file

@ -47,7 +47,7 @@ def cheque(request, invoice_pk):
form = InvoiceForm(request.POST or None, instance=invoice)
if form.is_valid():
form.instance.valid = True
form.save()
# For is saved in call to end_payment
return form.instance.paiement.end_payment(
form.instance, request, use_payment_method=False
)