VRBL-INV-DK-OIOUBL-2p0-95

Basic Info

Rule When the Payment Means Type Code is "31" and the Payment Means Payment Channel Code is "ZZZ", the Financial Institution Address must be provided.
Context /ubl:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch
Pattern vrbl-invoice-dk-oioubl-2p0
Severity fatal

Implementation

not(boolean(../../cbc:PaymentMeansCode)) or ../../cbc:PaymentMeansCode!='31' or not(boolean(../../cbc:PaymentChannelCode)) or ../../cbc:PaymentChannelCode!='ZZZ'
or
boolean(cac:Address)