VRBL-INV-PL-B2B-2-50

Basic Info

Rule Either the Due Date or the Payment Terms Installment Due Date where no Payment Terms Settlement Discount Percent is not provided must exist.
Context /ubl:Invoice
Pattern vrbl-invoice-pl-b2b-2p0
Severity fatal

Implementation

boolean(cbc:DueDate)
or 
boolean(
	cac:PaymentTerms[
		not(boolean(cbc:SettlementDiscountPercent))
	]/cbc:InstallmentDueDate
)