# PEPPOL-EN16931-R002

Source: https://xmlvalid.com/rules/PEPPOL-EN16931-R002

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

- Level: error
- Rule sets: Peppol BIS Billing 3.0 rules 3.0.21
- Context: `ubl-creditnote:CreditNote | ubl-invoice:Invoice`
- Test: `count(cbc:Note) <= 1 or ($supplierCountryIsDE and $customerCountryIsDE)`

## 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`.

Validate a document against these rules: https://xmlvalid.com/validate
