BR-21

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

error: the document is invalid Peppol documentation ↗

Why it fails

  • An invoice line has an empty or missing cbc:ID (ram:AssociatedDocumentLineDocument/ram:LineID in CII).

How to fix it

Number the lines; 1, 2, 3 will do. Peppol also wants the numbers to be unique within the invoice.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

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

Checked with EN 16931 Invoice (CII)

Context
cac:InvoiceLine | cac:CreditNoteLine
Test
(cbc:ID) != ''

Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)

Context
//ram:IncludedSupplyChainTradeLineItem
Test
(ram:AssociatedDocumentLineDocument/ram:LineID!='')

Checked with France Factur-X EN 16931, Factur-X / ZUGFeRD EN 16931