From f8ce23217e617d6b7e3df666ef49bfe1f46d0d6f Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 29 Dec 2021 02:22:10 +0100 Subject: [PATCH] simplify call --- InvenTree/stock/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index 9961bb7bae..d69c94b4a8 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -471,7 +471,7 @@ class StockList(generics.ListCreateAPIView): if serial_numbers: # If serial numbers are specified, check that they match! try: - serials = extract_serial_numbers(serial_numbers, data['quantity']) + serials = extract_serial_numbers(serial_numbers, quantity) except DjangoValidationError as e: raise ValidationError({ 'quantity': e.messages,