Rules / IBR-071
IBR-071 error
An invoice should not include an AdditonalDocumentReference
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 statement above is true. Paste the invoice into the validator to see the exact element that fails.