mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix for API
This commit is contained in:
parent
6eb4709658
commit
26c07961cb
@ -693,9 +693,7 @@ class PartList(generics.ListCreateAPIView):
|
||||
if initial_stock:
|
||||
try:
|
||||
|
||||
print("q:", request.data.get('initial_stock_quantity'))
|
||||
|
||||
initial_stock_quantity = Decimal(request.data.get('initial_stock_quantity', None))
|
||||
initial_stock_quantity = Decimal(request.data.get('initial_stock_quantity', ''))
|
||||
|
||||
if initial_stock_quantity <= 0:
|
||||
raise ValidationError({
|
||||
|
Loading…
Reference in New Issue
Block a user