VRBL-INV-CORE-191

Basic Info

Rule The Payee Party Identification ID used for SEPA must occur maximum once in the Invoice, if the Payee Party Group is different from the Seller Group.
Context /ubl:Invoice/cac:PayeeParty
Pattern vrbl-invoice-core
Severity fatal

Implementation

(
	count(cac:PartyIdentification[translate(cbc:ID/@schemeID, $AlphabetLowerCase, $AlphabetUpperCase) != 'SEPA']/cbc:ID) <= 1
)  
or 
(
	(cac:PartyName/cbc:Name) = (../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName)
)