The warehouse code otherwise known as the establishment code is a code that identifies approved depots.
The code is a four-digit alphanumeric number plus check digit. The code has three different formats. The leading alpha characters are converted to a numeric and then a common check digit calculation is employed.
Method 1 - Format = AANNA
Codes in this format have been issued since 1 April 97.
The first and second alpha characters are converted to a numeric based on the following table.
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
Method 2 - Format = ANNNA
Codes of this format were issued after 1 July 91.
The leading alpha character is converted to a numeric value based on the following table.
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
K |
L |
M |
N |
O |
P |
Q |
R |
S |
T |
U |
V |
W |
X |
Y |
Z |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
This value is multiplied by 10 and added to the product sum of digits two, three and four - using the weighting described in step two. The check digit is then calculated normally from step five.
Method 3 - Format = NNNNA
Codes of this format were issued prior to 1 July 91.
Check Digit Calculation Method
1. Convert alpha characters to numeric characters
2. Determine digits weighting according to the following table
Position from the left | 1 | 2 | 3 | 4 |
---|
Weighting | 10 | 9 | 8 | 7 |
---|
3. Multiply each digit by its weighting
4. Sum the products
5. Divide total by 11
6. Add 1 to the remainder
7. Select check digit from the table below
Remainder | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
---|
Check Digit | A | B | C | D | E | H | J | K | M | N | P |
---|
Example
Warehouse Code = AE29
1. Convert alpha characters to numeric characters = AE = 15
2. Multiply each digit by its weighting
3. Sum the products = 134
4. Divide total by 11 = 134/11 = 12 remainder 2
5. Add 1 to the remainder = 2+ 1 =3
6. Select check digit = C
7. Warehouse number = AE29C
V1.2 20 MAY 2004