UnitCode
: string
in package
uses
HasLabel
Unit of measure (BT-130, BT-150), UN/ECE Recommendation 20 and 21. Further codes can be used as RawCode.
Table of Contents
Cases
- Box = 'XBX'
- Centimetre = 'CMT'
- CubicMetre = 'MTQ'
- Day = 'DAY'
- Dozen = 'DZN'
- Gram = 'GRM'
- Hour = 'HUR'
- Kilogram = 'KGM'
- Kilometre = 'KMT'
- Kilowatt = 'KWT'
- KilowattHour = 'KWH'
- Litre = 'LTR'
- LumpSum = 'LS'
- Metre = 'MTR'
- Millilitre = 'MLT'
- Millimetre = 'MMT'
- Minute = 'MIN'
- Month = 'MON'
- Package = 'XPK'
- Pair = 'PR'
- Pallet = 'XPX'
- Percent = 'P1'
- Piece = 'H87'
- Quarter = 'QAN'
- Second = 'SEC'
- ServiceUnit = 'E48'
- Set = 'SET'
- SquareMetre = 'MTK'
- Tonne = 'TNE'
- Unit = 'C62'
- Week = 'WEE'
- Year = 'ANN'
Methods
- isValidCode() : bool
- Whether a raw code value is valid according to the official code list.
- labelGroup() : string
Cases
Unit
Piece
Set
Pair
Dozen
LumpSum
Second
Minute
Hour
Day
Week
Month
Quarter
Year
Gram
Kilogram
Tonne
Millimetre
Centimetre
Metre
Kilometre
SquareMetre
CubicMetre
Millilitre
Litre
KilowattHour
Kilowatt
Percent
ServiceUnit
Package
Box
Pallet
Methods
isValidCode()
Whether a raw code value is valid according to the official code list.
public
static isValidCode(string $code) : bool
Parameters
- $code : string
Return values
boollabelGroup()
public
static labelGroup() : string