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

Validation des factures à la recharge

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

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,