# ibr-071

Source: https://xmlvalid.com/rules/ibr-071

> An invoice should not include an AdditonalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Attachment (ibt-125).

- Level: error
- Rule sets: PINT Billing rules 1.1.3, PINT Billing rules (as shipped with PINT AE) 1.0.4
- Context: `/ubl:Invoice | /cn:CreditNote`
- Test: `not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cac:Attachment)`

Validate a document against these rules: https://xmlvalid.com/validate
