VRBL-REA-TR-1p2-36

Basic Info

Rule The Receipt Advice Buyer Party Group must not contain both VRBL:TR:VKN and VRBL:TR:TCKN Party Identification IDs.
Context /ubl:ReceiptAdvice/cac:DeliveryCustomerParty/cac:Party
Pattern vrbl-receiptadvice-tr-1p2
Severity fatal

Implementation

not(
	count(cac:PartyIdentification/cbc:ID[@schemeID = concat($VRBL-TR-Prefix, 'TCKN')]) = 1 
	and
	count(cac:PartyIdentification/cbc:ID[@schemeID = concat($VRBL-TR-Prefix, 'VKN')]) = 1
 )