mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
add fnc for new matcher
This commit is contained in:
@ -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 = []
|
||||
|
Reference in New Issue
Block a user