Faktura

PEPPOL-COMMON-R052

warningPeppol BIS Billing 3.0profileCIIUBL

Danish chamber of commerce number (P) MUST be stated in the correct format.

Why it fails

A Danish P-number (production unit) is malformed.

How to fix it

Ten digits, no spaces.

What the validator checks

CII — context ram:URIID[@schemeID = '0096'] | ram:ID[@schemeID = '0096'] | ram:GlobalID[@schemeID = '0096']

(string-length(string()) = 10) and (string-length(translate(substring(string(), 1, 10),'1234567890', '')) = 0)

UBL — context cbc:EndpointID[@schemeID = '0096'] | cac:PartyIdentification/cbc:ID[@schemeID = '0096'] | cbc:CompanyID[@schemeID = '0096']

(string-length(string()) = 10) and (string-length(translate(substring(string(), 1, 10),'1234567890', '')) = 0)

Related rules

Part of PEPPOL-COMMON — Peppol identifier formats.

Validate an invoice against this rule →

This is a Peppol BIS Billing 3.0 rule: an invoice can be perfectly valid EN 16931 and still be rejected by it.