mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 23:43:47 +00:00
Validation des factures à la recharge
This commit is contained in:
parent
8b2e776097
commit
eadb52146a
1 changed files with 2 additions and 2 deletions
|
@ -677,9 +677,9 @@ def credit_solde(request, user, **_kwargs):
|
||||||
"""
|
"""
|
||||||
refill_form = RechargeForm(request.POST or None, user=request.user)
|
refill_form = RechargeForm(request.POST or None, user=request.user)
|
||||||
if refill_form.is_valid():
|
if refill_form.is_valid():
|
||||||
invoice = Facture(user=request.user)
|
invoice = Facture(user=user)
|
||||||
invoice.paiement = refill_form.cleaned_data['payment']
|
invoice.paiement = refill_form.cleaned_data['payment']
|
||||||
invoice.valid = False
|
invoice.valid = True
|
||||||
invoice.save()
|
invoice.save()
|
||||||
Vente.objects.create(
|
Vente.objects.create(
|
||||||
facture=invoice,
|
facture=invoice,
|
||||||
|
|
Loading…
Reference in a new issue