TNS - Technical number system¶
The Technical Numbering System is a counting-based identification number system that does not contain any classification data. For evaluation purposes, attributes must be maintained in separate data fields outside of TNS.
Original PDF:
TNS.pdf (SN 01060)
Identification¶
1 | 2 | 3 | 4 |
---|---|---|---|
A | N | A | N |
RegEx (https://regex101.com/r/thQshK/1/)
^[A-HJ-NP-Z]\d[A-HJ-NP-Z]\d
Validation¶
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | N | A | N | N | N | N | N | N | N | N | * | A N | A N |
Definition:
Definition | |
---|---|
A | Letter position A-Z without I , O |
N | Digit position 0-9 |
* | Letter position, digit position or hyphen used as seperator |
TNS with 14 digits has a minimum length of 4 digits and a maximum length of 14 digits inlcuding a suffix of the last three digits.
Classification¶
For TNS <= 14 positions
NB | Description |
---|---|
TE | only numbers at the last three digits |
TU | only letters at the last three digits |
TZ | suffix with - separator |
TP | suffix has pattern ANN or ANA |
For TNS > 14 and <= 18 positions
NB | Description |
---|---|
TA | only numbers at the last three digits |
TD | only letters at the last three digits |
TS | suffix with - separator |
TM | suffix has pattern ANN or ANA |
Formatting¶
As a requesting service, I want to format my product numbers in two different output formats which are following the numbering standards, that I can ensure my numbers are structured everytime the same.
The formatting should only be executed for valid numbers.
PRINT¶
Delete all blanks
SORT¶
- When number length is <= 11 then fill with blanks from position 4 until length is 11
- When number length is <= 14 then fill with blanks from position 4 until length is 14
- When number length is <= 18 then fill with blanks from position 4 until length is 18
- Exception numbers with suffix including
-
seperator:
No filling with blanks until length 11.