Faktura

BR-21

fatalEN 16931EN 16931 business ruleCIIUBLBG-25BT-126

Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126).

Why it fails

An invoice line has no line identifier (BT-126).

How to fix it

Give every line a BT-126 (UBL InvoiceLine/cbc:ID, CII AssociatedDocumentLineDocument/ram:LineID). Any unique string works - '1', '2', '3' is fine - but it must be present on EVERY line and unique within the invoice.

What the validator checks

CII — context $Invoice_Line

normalize-space(ram:AssociatedDocumentLineDocument/ram:LineID) != ''

UBL — context $Invoice_Line

normalize-space(cbc:ID) != ''

Related rules

Part of BR — EN 16931 core business rules.

Validate an invoice against this rule →