BR-16

This id stands for 2 different rules, one per rule set below: Factur-X numbers its rules in each profile separately.

error: the document is invalid Peppol documentation ↗

Why it fails

  • The invoice has no cac:InvoiceLine (cac:CreditNoteLine in a credit note, ram:IncludedSupplyChainTradeLineItem in CII), for example a summary invoice that only carries totals.

How to fix it

Add at least one line. For a single service, one line with the total as its net amount will do.

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.

Message

An Invoice shall have at least one Invoice line (BG-25)

Context
/ubl:Invoice | /cn:CreditNote
Test
exists(cac:InvoiceLine) or exists(cac:CreditNoteLine)

Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

An Invoice shall have at least one Invoice line (BG-25).

Context
/rsm:CrossIndustryInvoice
Test
//ram:IncludedSupplyChainTradeLineItem

Checked with EN 16931 Invoice (CII)