8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +00:00

Validation des factures à la recharge

This commit is contained in:
Hugo LEVY-FALK 2018-07-10 16:46:49 +02:00
parent c1f55e797e
commit 07c6868a1c

View file

@ -677,9 +677,9 @@ def credit_solde(request, user, **_kwargs):
"""
refill_form = RechargeForm(request.POST or None, user=request.user)
if refill_form.is_valid():
invoice = Facture(user=request.user)
invoice = Facture(user=user)
invoice.paiement = refill_form.cleaned_data['payment']
invoice.valid = False
invoice.valid = True
invoice.save()
Vente.objects.create(
facture=invoice,