mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	replace must be str
This commit is contained in:
		| @@ -424,7 +424,7 @@ def extract_serial_numbers(serials, expected_quantity, next_number: int): | |||||||
|  |  | ||||||
|     # fill in the next serial number into the serial |     # fill in the next serial number into the serial | ||||||
|     if '~' in serials: |     if '~' in serials: | ||||||
|         serials = serials.replace('~', next_number) |         serials = serials.replace('~', str(next_number)) | ||||||
|  |  | ||||||
|     groups = re.split("[\s,]+", serials) |     groups = re.split("[\s,]+", serials) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user