Rules
VRBL-INV-DK-1p0-22
Basic Info
| Rule | The Payment Account ID is mandatory and MUST start with 71#, 73# or 75# (Kortartkode) and Payee Financial Account ID (Kreditornummer) is mandatory and must be exactly 8 characters long, when Payment Means Code equals 93 (FIK) |
| Context |
/ubl:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID
|
| Pattern | vrbl-invoice-dk-1p0 |
| Severity | fatal |
Implementation
not($DKSupplierCountry = 'DK')
or
not(normalize-space(../../cbc:PaymentMeansCode) = '93')
or
(
(
substring(normalize-space(../../cbc:PaymentID), 1, 2) = '71'
or
substring(normalize-space(../../cbc:PaymentID), 1, 2) = '73'
or
substring(normalize-space(../../cbc:PaymentID), 1, 2) = '75'
)
and
string-length(normalize-space(.)) = 8
)