PEPPOL-EN16931-R002

No more than one note is allowed on document level, unless both the buyer and seller are German organizations.

error: the document is invalid Peppol documentation ↗

Why it fails

  • The invoice has more than one cbc:Note at document level, and seller and buyer are not both in Germany.

How to fix it

Join the notes into one cbc:Note.

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
ubl-creditnote:CreditNote | ubl-invoice:Invoice
Test
count(cbc:Note) <= 1 or ($supplierCountryIsDE and $customerCountryIsDE)

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