Commit 3dc863a6 authored by Levy--Falk Hugo's avatar Levy--Falk Hugo

Ne save pas les factures avant d'en avoir vérifié le prix.

parent 167bc601
......@@ -118,7 +118,6 @@ def new_facture(request, user, userid):
articles = article_formset
# Check if at leat one article has been selected
if any(art.cleaned_data for art in articles):
new_invoice_instance.save()
# Building a purchase for each article sold
purchases = []
total_price = 0
......
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