VRBL-INV-AE-1p0-63

Basic Info

Rule An Due Date must be present in case Legal Monetary Total Payable Amount != 0, unless Deemed Supply Indicator exists or Invoice Type Code = '261 or '81'.
Context /ubl:Invoice
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

(cbc:InvoiceTypeCode = '261' or cbc:InvoiceTypeCode = '81' or cbc:InvoiceTypeCode = '381')
or
(
boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:DeemedSupplyIndicator)
)
or
number(cac:LegalMonetaryTotal/cbc:PayableAmount) = 0
or
(
	
	boolean(cbc:DueDate)
)