mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-27 09:23:47 +00:00
Ne save pas les factures avant d'en avoir vérifié le prix.
This commit is contained in:
parent
167bc60123
commit
3dc863a635
1 changed files with 0 additions and 1 deletions
|
@ -118,7 +118,6 @@ def new_facture(request, user, userid):
|
||||||
articles = article_formset
|
articles = article_formset
|
||||||
# Check if at leat one article has been selected
|
# Check if at leat one article has been selected
|
||||||
if any(art.cleaned_data for art in articles):
|
if any(art.cleaned_data for art in articles):
|
||||||
new_invoice_instance.save()
|
|
||||||
# Building a purchase for each article sold
|
# Building a purchase for each article sold
|
||||||
purchases = []
|
purchases = []
|
||||||
total_price = 0
|
total_price = 0
|
||||||
|
|
Loading…
Reference in a new issue