VRBL-INV-DK-OIOUBL-2p0-8

Basic Info

Rule The Invoice Line Price Amount Currency ID must be the same as the Pricing Currency Code, if it exists.
Context /ubl:Invoice/cac:InvoiceLine/cac:Price/cbc:PriceAmount
Pattern vrbl-invoice-dk-oioubl-2p0
Severity fatal

Implementation

not(boolean(/ubl:Invoice/cbc:PricingCurrencyCode))
or
@currencyID = /ubl:Invoice/cbc:PricingCurrencyCode