mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-22 14:50:53 +00:00
Bug fix for API
This commit is contained in:
@ -693,9 +693,7 @@ class PartList(generics.ListCreateAPIView):
|
|||||||
if initial_stock:
|
if initial_stock:
|
||||||
try:
|
try:
|
||||||
|
|
||||||
print("q:", request.data.get('initial_stock_quantity'))
|
initial_stock_quantity = Decimal(request.data.get('initial_stock_quantity', ''))
|
||||||
|
|
||||||
initial_stock_quantity = Decimal(request.data.get('initial_stock_quantity', None))
|
|
||||||
|
|
||||||
if initial_stock_quantity <= 0:
|
if initial_stock_quantity <= 0:
|
||||||
raise ValidationError({
|
raise ValidationError({
|
||||||
|
Reference in New Issue
Block a user