VRBL-INV-DK-1p0-24
Basic Info
|
Rule
|
The Financial Institution Branch ID and Payee Financial Account ID is mandatory if Payment Means Code is 31 or 42 |
|
Context
|
/ubl:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID
|
|
Pattern
|
vrbl-invoice-dk-1p0 |
|
Severity
|
fatal |
Implementation
not($DKSupplierCountry = 'DK')
or
not(
normalize-space(../../../cbc:PaymentMeansCode) = '31'
or
normalize-space(../../../cbc:PaymentMeansCode) = '42'
)
or
(
boolean(/ubl:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID)
and
not(normalize-space(.) = '')
and
boolean(/ubl:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID)
and
not(normalize-space(../../cbc:ID) = '')
)