VRBL-INV-AE-1p0-129

Basic Info

Rule The (Payment Means Payment Means Code must be provided for standard invoices, and MUST NOT be provided when the invoice type is a Credit Note (81, 381, 261) or a Deemed Supply.
Context /ubl:Invoice
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

boolean(cac:PaymentMeans/cbc:PaymentMeansCode) 
= 
not(
	cbc:InvoiceTypeCode = '81' 
	or cbc:InvoiceTypeCode = '381' 
	or cbc:InvoiceTypeCode = '261' 
	or cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:DeemedSupplyIndicator
)