VRBL-INV-DK-OIOUBL-2p0-67
Basic Info
| Rule | If the Buyer Party Identification ID is marked as a Danish CVR, it must start with "DK" followed by 8 characters. |
| Context |
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
|
| Pattern | vrbl-invoice-dk-oioubl-2p0 |
| Severity | fatal |
Used Template: VRBL-DK-schemeID-CVR
Implementation
not(@schemeID = concat($VRBL-DK-Prefix, 'CVR'))
or
(
string-length(normalize-space(.)) = 10
and
substring(normalize-space(.), 1, 2) = 'DK'
)