mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Validation des factures à la recharge
This commit is contained in:
parent
c1f55e797e
commit
07c6868a1c
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)
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue