HR-BR-45

Datum izdavanja prethodnog računa (BT-26) mora biti mora biti veći od 01.01.1900. i manji od 01.01.2100.

In English The preceding invoice issue date (BT-26) must be after 1 January 1900 and before 1 January 2100.

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
cac:BillingReference
Test
xs:date(cac:InvoiceDocumentReference/cbc:IssueDate) >= xs:date('1900-01-01') and xs:date(cac:InvoiceDocumentReference/cbc:IssueDate) < xs:date('2100-01-01')

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