VRBL-APR-US-1p0-23

Basic Info

Rule For Document Reference Group with Document Reference Document Type Code equal to 'VRBL:US:XHE' or 'VRBL:US:BUS', the Document Reference Issuer Party Group must exist within the Document Reference Group.
Context /ubl:ApplicationResponse/cac:DocumentResponse/cac:DocumentReference
Pattern vrbl-ar-us-dbna-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cac:IssuerParty

Implementation

(
	not(cbc:DocumentTypeCode = concat($VRBL-US-Prefix,'BUS') or cbc:DocumentTypeCode=concat($VRBL-US-Prefix,'XHE'))
)
or
(
	boolean(cac:IssuerParty)
)