VRBL-INV-AE-1p0-117

Basic Info

Rule When the Buyer Electronic Address Scheme ID is '0235' and the Buyer Legal Registration 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