diff --git a/InvenTree/InvenTree/helpers.py b/InvenTree/InvenTree/helpers.py index e030d51abf..4848b49e33 100644 --- a/InvenTree/InvenTree/helpers.py +++ b/InvenTree/InvenTree/helpers.py @@ -424,7 +424,7 @@ def extract_serial_numbers(serials, expected_quantity, next_number: int): # fill in the next serial number into the serial if '~' in serials: - serials = serials.replace('~', next_number) + serials = serials.replace('~', str(next_number)) groups = re.split("[\s,]+", serials)