BR-21
Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126).
Why it fails
- An invoice line has an empty or missing
cbc:ID(ram:AssociatedDocumentLineDocument/ram:LineIDin 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.
cac:InvoiceLine | cac:CreditNoteLine
normalize-space(cbc:ID) != ''
Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)
//ram:IncludedSupplyChainTradeLineItem
normalize-space(ram:AssociatedDocumentLineDocument/ram:LineID) != ''
Checked with EN 16931 Invoice (CII)
cac:InvoiceLine | cac:CreditNoteLine
(cbc:ID) != ''
Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)
//ram:IncludedSupplyChainTradeLineItem
(ram:AssociatedDocumentLineDocument/ram:LineID!='')
Checked with France Factur-X EN 16931, Factur-X / ZUGFeRD EN 16931