What the rule requires
The unit of a line (BT-130) must be a code from the UN/ECE Recommendation 20 and 21 lists — not an abbreviation from your own program.
In KoSIT's XRechnung configuration this is a warning: the invoice is accepted. Other validators treat the same rule as an error.
Common codes
| Unit | Code |
|---|---|
| piece | H87 or C62 ("one") |
| hour | HUR |
| day | DAY |
| kilogram | KGM |
| metre | MTR |
| lump sum | LS |
All codes are in the validator configuration (list for rule BR-CL-23).
Common causes
- The program writes the unit as in the item master:
Stk,pcs,h,kg. - Lower case:
kgminstead ofKGM.
How to fix it
Map every unit in your program to its UN/ECE code; many programs have a field such as "unit for e-invoice" for that.
Example (CII)
<ram:BilledQuantity unitCode="HUR">2.5</ram:BilledQuantity> <!-- BT-129, BT-130 -->
Sources: KoSIT validator configuration XRechnung 3.0.2 (code list, level "warning"); XRechnung specification 3.0.2 (BT-130).