check ISO6346()
This function validates the check digit of a container number (according to ISO 6346 or EN13044) of length 11.
If the check is successful, the function returns true, otherwise false (also if the format of the container number is incorrect).
Parameters
Parameter |
Description |
a |
The container number (according to ISO 6346 or EN13044) of length 11 (i.e. with check digit). Lower cases and spaces are allowed. |
Example
Parameter a |
Result |
CSQU3054383 |
true |
Csq U3054383 |
true |
7777777 |
false |