Peppol BIS Billing 3.0.21 · UBL

PEPPOL-EN16931-P0112: Invoice type code 326 or 384 are only allowed when both buyer and seller are German…

Peppol BIS Billing 3.0.21 · UBL

fatalformat

Original rule text

[PEPPOL-EN16931-P0112]-Invoice type code 326 or 384 are only allowed when both buyer and seller are German organizations

Stored validation assertion
not(normalize-space(.) = '326' or normalize-space(.) = '384') or ($supplierCountryIsDE and $customerCountryIsDE)

PEPPOL-EN16931-P0112 is a fatal rule in the format layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.

What this rule requires

The rule requires that if cbc:InvoiceTypeCode has value 326 or 384, then both the supplier and the customer must have country code DE in their postal address. The test allows the invoice type code to be anything else with no country restriction. Country codes are compared case-insensitively and ignoring leading/trailing whitespace.

How to fix

Either change cbc:InvoiceTypeCode to a value other than 326 or 384, or ensure both cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode and cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode are set to DE (case-insensitive, whitespace ignored).

Guidance on this rule. The original text above is authoritative.

Where to go next

PEPPOL-EN16931-P0112 changed in 1 published Peppol BIS Billing UBL release comparison:

Validate an invoice against these rules · All release changes