article. passe à True si l'article est reçu lors d'une livraison
This commit is contained in:
parent
990643e5d4
commit
95fd6ed655
1 changed files with 2 additions and 0 deletions
|
@ -1652,6 +1652,8 @@ def order_to_inventory(request, pk):
|
|||
stock_old = article.stock,
|
||||
stock_new = article.stock + q_received)
|
||||
article.stock += q_received
|
||||
if q_received > 0:
|
||||
article.is_sold = True
|
||||
article.save()
|
||||
messages.success(request, "C'est tout bon !")
|
||||
return redirect('kfet.order')
|
||||
|
|
Loading…
Reference in a new issue