VRBL-INV-DE-XR-7

Basic Info

Rule In case of "Direct Debit" a Seller ID used for SEPA or Payee Party Identification ID used for SEPA must be provided.
Context /ubl:Invoice
Pattern vrbl-invoice-de-xr-3p0
Severity fatal

Implementation

not($Invoice/cac:PaymentMeans/cac:PaymentMandate) 
or 
(
	boolean($Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification[cbc:ID/@schemeID = 'SEPA']/cbc:ID) 
	or 
	boolean($Invoice/cac:PayeeParty/cac:PartyIdentification[cbc:ID/@schemeID = 'SEPA']/cbc:ID)
)