mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 19:15:41 +00:00
Add-stock is now working
This commit is contained in:
@ -336,6 +336,8 @@ class StockAdjust(AjaxView, FormMixin):
|
|||||||
if item.new_quantity <= 0:
|
if item.new_quantity <= 0:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
item.add_stock(item.new_quantity, self.request.user, notes=note)
|
||||||
|
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
return _("Added stock to {n} items".format(n=count))
|
return _("Added stock to {n} items".format(n=count))
|
||||||
|
Reference in New Issue
Block a user