VRBL-INV-TR-1p2-19

Basic Info

Rule When the Invoice Type Code is VRBL:TR:TEVKIFATIADE or VRBL:TR:IADE, the Invoice expects a minimum of one %{probe}.
Context /ubl:Invoice
Pattern vrbl-invoice-tr-1p2
Severity fatal

Used Template: CountGreaterEqualOne

Parameter Value
probe = cac:BillingReference/cac:InvoiceDocumentReference[cbc:DocumentTypeCode=concat($VRBL-TR-Prefix, 'IADE')]

Implementation

    (     not(cbc:InvoiceTypeCode = concat($VRBL-TR-Prefix, 'TEVKIFATIADE') or cbc:InvoiceTypeCode = concat($VRBL-TR-Prefix, 'IADE'))    )    or    (     count(cac:BillingReference/cac:InvoiceDocumentReference[cbc:DocumentTypeCode=concat($VRBL-TR-Prefix, 'IADE')]) >= 1    )