HR-BR-CL-1

Oznaka kategorije PDV mora imati vrijednosti iz HR-TB-2 HR oznaka kategorije PDV iz Specifikacije osnovne uporabe eRačuna s proširenjima

In English The VAT category name must be one of the values of table HR-TB-2, HR VAT category codes, of the Specification of the core use of eRačun with extensions.

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:TaxCategory/cbc:Name | cac:ClassifiedTaxCategory/cbc:Name | hrextac:HRTaxCategory/cbc:Name
Test
((not(contains(normalize-space(.), ' ')) and contains(' HR:PDV25 HR:PDV13 HR:PDV5 HR:Z HR:K HR:G HR:AE HR:E HR:POVNAK HR:PP HR:PPMV HR:O HR:N ', concat(' ', normalize-space(.), ' '))))

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