VRBL-INV-HR-CIUS-1p0-5

Basic Info

Rule The Due Date or the Payment Due Date must exist when the Legal Monetary Total Payable Amount contains a debt to be paid.
Context /ubl:Invoice
Pattern vrbl-invoice-hr-cius-1p0
Severity fatal

Implementation

boolean(cbc:DueDate)
or
boolean(cac:PaymentMeans/cbc:PaymentDueDate)
or
(
	cac:LegalMonetaryTotal/cbc:PayableAmount >= 0
	and
	cbc:InvoiceTypeCode = '381'
)
or
(
	cac:LegalMonetaryTotal/cbc:PayableAmount <= 0
	and
	not(cbc:InvoiceTypeCode = '381')
)