diff --git a/InvenTree/InvenTree/helpers.py b/InvenTree/InvenTree/helpers.py index 42dae832c8..e030d51abf 100644 --- a/InvenTree/InvenTree/helpers.py +++ b/InvenTree/InvenTree/helpers.py @@ -422,6 +422,10 @@ def extract_serial_numbers(serials, expected_quantity, next_number: int): serials = serials.strip() + # fill in the next serial number into the serial + if '~' in serials: + serials = serials.replace('~', next_number) + groups = re.split("[\s,]+", serials) numbers = []