VRBL-INV-DE-PEPPOL-5

Basic Info

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

Implementation

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