VRBL-INV-DK-1p0-25
Basic Info
|
Rule
|
The Payment Means Payment Mandate Payer Financial Account ID and Payer Financial Account ID are mandatory when Payment Means Code is 49 |
|
Context
|
/ubl:Invoice/cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:ID
|
|
Pattern
|
vrbl-invoice-dk-1p0 |
|
Severity
|
fatal |
Implementation
not($DKSupplierCountry = 'DK')
or
not(normalize-space(../../../cbc:PaymentMeansCode) = '49')
or
(
(
boolean(/ubl:Invoice/cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:ID)
and
not(normalize-space(.) = '')
and
boolean(/ubl:Invoice/cac:PaymentMeans/cac:PaymentMandate/cbc:ID)
and
not(normalize-space(../../cbc:ID) = '')
)
)