Message

Only one invoiced object is allowed on document level

Context
ubl-creditnote:CreditNote | ubl-invoice:Invoice
Test
(count(cac:AdditionalDocumentReference[cbc:DocumentTypeCode='130']) <= 1)
Usage
/ ubl:Invoice / cac:AdditionalDocumentReference
/ ubl:CreditNote / cac:AdditionalDocumentReference