VRBL-INV-PEPPOL-RS-20

Basic Info

Rule The Payment Means Payment Mandate ID must be provided for direct debit.
Context /ubl:Invoice/cac:PaymentMeans
Pattern vrbl-invoice-peppol-bis3p0-reduced-syntax
Severity fatal

Implementation

(
	(cbc:PaymentMeansCode = '49' or cbc:PaymentMeansCode = '59')
	and
	boolean(cac:PaymentMandate/cbc:ID)
)
or
(
	cbc:PaymentMeansCode != '49' and cbc:PaymentMeansCode != '59'
)