mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add fnc for new matcher
This commit is contained in:
parent
7ef0e7941e
commit
771f3d6b7b
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user