HR-BR-55
HR Ukupni iznos PDV (HR-BT-25) mora biti jednak ukupni iznos PDV (HR-BT-110)
In English The HR total VAT amount (HR-BT-25) must equal the invoice total VAT amount (BT-110).
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:TaxTotal
Test
(xs:decimal(../ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/hrextac:HRFISK20Data/hrextac:HRTaxTotal/cbc:TaxAmount) = xs:decimal(cbc:TaxAmount) or (cbc:TaxAmount/@currencyID != ../cbc:DocumentCurrencyCode)) or (not(exists(../ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/hrextac:HRFISK20Data/hrextac:HRTaxTotal)))
Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)