HR-BR-43

Referenca ugovora (BT-12) ne smije imati više od 1024 znakova

In English The contract reference (BT-12) must not be longer than 1024 characters.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
ubl-creditnote:CreditNote | ubl-invoice:Invoice
Test
string-length(cac:ContractDocumentReference/cbc:ID) <= 1024

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)