HR-BR-51
Početni datum obračunskog razdoblja stavke računa (BT-134) mora biti veći od 01.01.1900. i manji od 01.01.2100.
In English The invoice line period start date (BT-134) must be after 1 January 1900 and before 1 January 2100.
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
cac:InvoiceLine | cac:CreditNoteLine
((xs:date(cac:InvoicePeriod/cbc:StartDate) >= xs:date('1900-01-01')) and (xs:date(cac:InvoicePeriod/cbc:StartDate) < xs:date('2100-01-01'))) or (not(exists(cac:InvoicePeriod/cbc:StartDate)))
Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)