mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
replace must be str
This commit is contained in:
parent
2ec41b02f8
commit
a745aa500e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user