mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Allow creation of a stock item with zero quantity
This commit is contained in:
parent
8a1f358505
commit
10691b3d03
@ -1239,8 +1239,8 @@ class StockItemCreate(AjaxCreateView):
|
||||
valid = False
|
||||
form.errors['quantity'] = [_('Invalid quantity')]
|
||||
|
||||
if quantity <= 0:
|
||||
form.errors['quantity'] = [_('Quantity must be greater than zero')]
|
||||
if quantity < 0:
|
||||
form.errors['quantity'] = [_('Quantity cannot be less than zero')]
|
||||
valid = False
|
||||
|
||||
if part is None:
|
||||
|
Loading…
Reference in New Issue
Block a user