HR-BR-2
Račun mora imati vrijeme izdavanja računa (HR-BT-2). Vrijeme se upisuje u formatu hh:mm:ss
In English The invoice must have an issue time (HR-BT-2), written as hh:mm:ss.
error: the document is invalid
Why it fails
cbc:IssueTimeis missing; it is optional in EN 16931 and required in Croatia.- The time has a time zone or fractional seconds (
10:15:00+01:00,10:15:00.000); the rule accepts exactlyhh:mm:ss.
How to fix it
Add <cbc:IssueTime>10:15:00</cbc:IssueTime> after cbc:IssueDate, without a time zone.
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
cbc:IssueTime and matches(cbc:IssueTime, '^[0-9]{2}:[0-9]{2}:[0-9]{2}$')
Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)