Rules / IBR-072
An invoice must not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Document Description
An invoice must not include an AdditionalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Document Description (ibt-123).
Fails when this is false
not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cbc:DocumentDescription)The schematron test, verbatim. Context: /ubl:Invoice | /cn:CreditNote
Fix
Change the data so the condition below holds. It reads cac:AdditionalDocumentReference, cbc:DocumentDescription, cbc:DocumentTypeCode. Paste the invoice into the validator to see the exact element that fails.