# HR-BR-18

Source: https://xmlvalid.com/rules/HR-BR-18

> Ako se koristi referenca otpremnice na stavci računa (HR-BT-10), zabranjeno je koristiti BT-16 Referencu otpremnice na razini računa

- Level: error
- Rule sets: Croatian eRačun rules (UBL) 13.03.2026
- Context: `cac:InvoiceLine | cac:CreditNoteLine`
- Test: `(exists(cac:DespatchLineReference/cac:DocumentReference/cbc:ID) and not($hasDespatchDocumentReference)) or (not(exists(cac:DespatchLineReference/cac:DocumentReference/cbc:ID)) and ($hasDespatchDocumentReference)) or (not(exists(cac:DespatchLineReference/cac:DocumentReference/cbc:ID)) and not($hasDespatchDocumentReference))`

In English: When a despatch advice reference is given on an invoice line (HR-BT-10), the document level despatch advice reference (BT-16) must not be used.

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