mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Add-stock is now working
This commit is contained in:
parent
8dd9034563
commit
1b3ffada6d
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user