mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 19:33:11 +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)
|
||||
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