VRBL-INV-AE-1p0-113

Basic Info

Rule When the Disclosed Agent Billing Indicator is present, the Seller Tax ID and the Additional Party Tax Company ID with code = 'VRBL:AE:Principal' MUST NOT be the same.
Context /ubl:Invoice
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:DisclosedAgentBillingIndicator = 'true')
or
(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:AdditionalParty[@code = 'VRBL:AE:Principal']/cac:Party/cac:PartyTaxScheme/cbc:CompanyID)