Faktura

BR-23

fatalEN 16931EN 16931 business ruleCIIUBLBG-25BT-130

An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).

Why it fails

An invoice line's quantity has no unit of measure code (BT-130).

How to fix it

Add the unitCode attribute to the quantity, using UN/ECE Recommendation 20 (with Rec 21 extensions). C62 = piece/unit, HUR = hour, DAY = day, KGM = kilogram, MTR = metre, LTR = litre, MTQ = cubic metre. When in doubt for a service, C62 is the safe default. 'PCS', 'St', 'kom' and 'h' are NOT valid codes.

What the validator checks

CII — context $Invoice_Line

(ram:SpecifiedLineTradeDelivery/ram:BilledQuantity/@unitCode)

UBL — context $Invoice_Line

exists(cbc:InvoicedQuantity/@unitCode) or exists(cbc:CreditedQuantity/@unitCode)

Related rules

Part of BR — EN 16931 core business rules.

Validate an invoice against this rule →