# HR-BR-19

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

> Ako se koristi referenca primke na stavci računa (HR-BT-11), zabranjeno je koristiti BT-15 Referencu primke na razini računa

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

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

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