HR-BR-21

Stavka …: Jedinica mjere jedinične količine cijene artikla, ako je iskazan, MORA biti jednaka jedinici mjere obračunate količine (BT-130)

In English The unit of measure of the item price base quantity, when given, must be the same as the unit of the invoiced quantity (BT-130).

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:Price/cbc:BaseQuantity[@unitCode]
Test
not($hasQuantity) or @unitCode = $quantity/@unitCode

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