VRBL-INV-JP-1p0-2

Basic Info

Rule When the Seller Group is Japanese, and the Tax Currency Code is present, it must be "JPY".
Context /ubl:Invoice
Pattern vrbl-invoice-jp-1p0
Severity fatal

Implementation

not(
	$JPSupplierCountry = 'JP'
	and
	boolean(cbc:TaxCurrencyCode)
)
or
string(cbc:TaxCurrencyCode) = 'JPY'