VRBL-INV-PEPPOL-PINT-52

Basic Info

Rule The Payee Party Name Group must be provided in the Invoice, if the Payee Party Name Group is different from the Seller Party Name Group.
Context /ubl:Invoice/cac:PayeeParty
Pattern vrbl-invoice-peppol-pint
Severity fatal

Implementation

boolean(cac:PartyName/cbc:Name)
and 
(
	not(cac:PartyName/cbc:Name = ../cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name)
	and
	not(cac:PartyIdentification/cbc:ID = ../cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID)
)