VRBL-INV-PEPPOL-PINT-106

Basic Info

Rule The Invoice Line Group expects a maximum of one Invoice Line Document Reference Group where Invoice Line Document Reference Document Type Code is '130'.
Context /ubl:Invoice/cac:InvoiceLine
Pattern vrbl-invoice-peppol-pint
Severity fatal

Used Template: CountLessEqualOne

Parameter Value
probe = cac:DocumentReference[cbc:DocumentTypeCode = '130']
displayName_probe = %{cac:DocumentReference} where %{cac:DocumentReference/cbc:DocumentTypeCode} is '130'

Implementation

count(cac:DocumentReference[cbc:DocumentTypeCode = '130']) <= 1