-
Notifications
You must be signed in to change notification settings - Fork 4
Catalogue Number Serialization
jadrake75 edited this page Apr 2, 2017
·
2 revisions
100 00204 01
1000020401 1010020402
[prefix-code][padded number][catalogue type][postfix]
- prefix-code - all values start at 100 and range from 100 to 999 depending on precedence in catalogue ordering. For example, regular issues (100) will preceed designated official stamps (150?) which are lower than official special delivery (155)
- padded number - is the catalogue number up to 5 digits in length (allowing for 99999 (the highest is likely in the 6000s) with 0 padding to the left.
- catalogue type - the code the catalogue type. This will allow certain catalogues (Michel, Gibbons) to take precedence over others (JSCA or Scott).
- postfix - the additional non numeric part of the catalogue number. What this is will depend on whether BigInt or Varchar column is chosen
A new helper catalogue-number-helper.js
will be created which will have the following static functions:
- serialize(catalogueNumber) - will take the catalogue number and generate a serialized value for the catalogue number given the model information