VRBL-INV-FR-CIUS-1p0-58

Basic Info

Rule When the Invoice Subtype Code represents a special contract, a Sub Invoice Line Document Reference Group must exist with Sub Invoice Line Document Reference Scheme ID indicating 'AFL'.
Context /ubl:Invoice/cac:InvoiceLine/cac:SubInvoiceLine
Pattern vrbl-invoice-fr-cius-1p0
Severity warning

Implementation

not($isSpecialContract)
or
boolean(cac:DocumentReference[cbc:ID/@schemeID = 'AFL'])