VRBL-APR-TR-1p2-15

Basic Info

Rule When the Sender Party Tax Company ID is a TCKN,the Sender Party Person Family Name must exist within the Sender Party Group.
Context /ubl:ApplicationResponse/cac:SenderParty
Pattern vrbl-applicationresponse-tr-1p2
Severity fatal

Used Template: Exists

Parameter Value
probe = cac:Person/cbc:FamilyName

Implementation

(
	not(string-length(normalize-space(cac:PartyTaxScheme/cbc:CompanyID)) = 11)
)
or
(
	boolean(cac:Person/cbc:FamilyName)
)