VRBL-INV-AE-1p0-117

Basic Info

Rule When the Buyer Endpoint ID Scheme ID is '0235' and the Buyer Party Legal Entity Company ID is provided, the Buyer Party Legal Entity Company ID Scheme Agency ID MUST be present.
Context /ubl:Invoice/cac:AccountingCustomerParty/cac:Party
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(cbc:EndpointID/@schemeID = '0235' and cac:PartyLegalEntity/cbc:CompanyID)
or
cac:PartyLegalEntity/cbc:CompanyID/@schemeAgencyID