HR-BR-1

Broj računa ne smije sadržavati bjeline (whitespace znakove)

In English The invoice number must not contain whitespace.

error: the document is invalid

Why it fails

  • cbc:ID contains a space, tab or line break, often from a pretty-printer or a number like 2026 / 1.

How to fix it

Write the invoice number without whitespace, for example 2026/1/1.

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
not(matches(/*/cbc:ID, '\s'))

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