PEPPOL-EN16931-R100

Only one invoiced object is allowed pr line

error: the document is invalid Peppol documentation ↗

Why it fails

  • An invoice line has more than one cac:DocumentReference.

How to fix it

A line can name one invoiced object (BT-128). Put other references on the line in its note (BT-127), or at document level.

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
cac:InvoiceLine | cac:CreditNoteLine
Test
(count(cac:DocumentReference) <= 1)

Checked with Peppol BIS Billing 3.0 Invoice, Peppol BIS Billing 3.0 Credit Note