Message

Only one project reference is allowed on document level

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