Commit 34c5af62 authored by Maël Kervella's avatar Maël Kervella

Fix: Error rename

parent 8fb8e14a
...@@ -719,7 +719,7 @@ def new_facture_solde(request, userid): ...@@ -719,7 +719,7 @@ def new_facture_solde(request, userid):
user = request.user user = request.user
invoice = Facture(user=user) invoice = Facture(user=user)
payment, _created = Paiement.objects.get_or_create(moyen='Solde') payment, _created = Paiement.objects.get_or_create(moyen='Solde')
facture.paiement = payment invoice.paiement = payment
# The template needs the list of articles (for the JS part) # The template needs the list of articles (for the JS part)
article_list = Article.objects.filter( article_list = Article.objects.filter(
Q(type_user='All') | Q(type_user=request.user.class_name) Q(type_user='All') | Q(type_user=request.user.class_name)
...@@ -827,9 +827,9 @@ def recharge(request): ...@@ -827,9 +827,9 @@ def recharge(request):
if refill_form.is_valid(): if refill_form.is_valid():
invoice = Facture(user=request.user) invoice = Facture(user=request.user)
payment, _created = Paiement.objects.get_or_create(moyen='Rechargement en ligne') payment, _created = Paiement.objects.get_or_create(moyen='Rechargement en ligne')
facture.paiement = payment invoice.paiement = payment
facture.valid = False invoice.valid = False
facture.save() invoice.save()
purchase = Vente.objects.create( purchase = Vente.objects.create(
facture=invoice, facture=invoice,
name='solde', name='solde',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment