diff --git a/InvenTree/build/views.py b/InvenTree/build/views.py index ec2ce27966..21cf5dda99 100644 --- a/InvenTree/build/views.py +++ b/InvenTree/build/views.py @@ -100,7 +100,7 @@ class BuildOutputCreate(AjaxUpdateView): # Check that requested output don't exceed build remaining quantity maximum_output = int(build.remaining - build.incomplete_count) - + if quantity > maximum_output: form.add_error( 'output_quantity', @@ -112,7 +112,7 @@ class BuildOutputCreate(AjaxUpdateView): 'output_quantity', _('Output quantity must be greater than zero'), ) - + # Check that the serial numbers are valid if serials: try: