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