BR-16
This id stands for 2 different rules, one per rule set below: Factur-X numbers its rules in each profile separately.
Why it fails
- The invoice has no
cac:InvoiceLine(cac:CreditNoteLinein a credit note,ram:IncludedSupplyChainTradeLineItemin 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.
An Invoice shall have at least one Invoice line (BG-25)
/ubl:Invoice | /cn:CreditNote
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)
An Invoice shall have at least one Invoice line (BG-25).
/rsm:CrossIndustryInvoice
//ram:IncludedSupplyChainTradeLineItem
Checked with EN 16931 Invoice (CII)