Rules / IBR-090
Only one project reference is allowed on document level
Only one project reference (ibt-011) is allowed on document level.
Fails
<cac:ProjectReference><cbc:ID>P-1</cbc:ID></cac:ProjectReference>
<cac:ProjectReference><cbc:ID>P-2</cbc:ID></cac:ProjectReference>
<!-- also at most one cac:AdditionalDocumentReference with cbc:DocumentTypeCode 50 -->
Fix
Keep one cac:ProjectReference, and at most one cac:AdditionalDocumentReference with cbc:DocumentTypeCode 50. A second project belongs on a separate invoice.
Schematron
- Context
/ubl:Invoice | /cn:CreditNote- Test
(count(cac:ProjectReference) <= 1) and (count(cac:AdditionalDocumentReference[cbc:DocumentTypeCode='50']) <= 1)
Official text: Only one project reference (ibt-011) is allowed on document level.