VRBL-INV-HR-CIUS-1p0-93

Basic Info

Rule In case the Amount Due For Payment is positive and the Invoice Type Code is not '381', either the Payment Due Date or the Payment Due Date must be present.
Context /ubl:Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount
Pattern vrbl-invoice-hr-cius-1p0
Severity fatal

Implementation

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