mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-26 17:03:45 +00:00
Les factures sont validées en post_paiement + bug fix paiement relation
This commit is contained in:
parent
9fdadaf478
commit
f2c132016f
1 changed files with 1 additions and 2 deletions
|
@ -836,7 +836,6 @@ def credit_solde(request, user, **_kwargs):
|
|||
else:
|
||||
price_ok = True
|
||||
if price_ok:
|
||||
invoice.valid = True
|
||||
invoice.save()
|
||||
Vente.objects.create(
|
||||
facture=invoice,
|
||||
|
@ -852,6 +851,6 @@ def credit_solde(request, user, **_kwargs):
|
|||
'balance': user.solde,
|
||||
'title': _("Refill your balance"),
|
||||
'action_name': _("Pay"),
|
||||
'max_balance': p.payment_method.maximum_balance,
|
||||
'max_balance': find_payment_method(p).maximum_balance,
|
||||
}, 'cotisations/facture.html', request)
|
||||
|
||||
|
|
Loading…
Reference in a new issue