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