VRBL-INV-HU-1p0-41

Basic Info

Rule The Invoice Line Price Alternative Currency Price Amount must be provided and Invoice Line Price Alternative Currency Price Amount Currency ID must be equal to Tax Currency Code when Document Currency Code is different from Tax Currency Code.
Context /ubl:Invoice/cac:InvoiceLine/cac:Price
Pattern vrbl-invoice-hu-1p0
Severity fatal

Implementation

(
	not(boolean(/ubl:Invoice/cbc:TaxCurrencyCode))
	or
	/ubl:Invoice/cbc:DocumentCurrencyCode = /ubl:Invoice/cbc:TaxCurrencyCode
)
or
(
	boolean(cac:AlternativeCurrencyPrice/cbc:PriceAmount)
	and
	cac:AlternativeCurrencyPrice/cbc:PriceAmount/@currencyID = /ubl:Invoice/cbc:TaxCurrencyCode
)