VRBL-INV-JP-1p0-5

Basic Info

Rule When the Seller Group is Japanese, then the Seller Tax ID must be provided.
Context /ubl:Invoice/cac:AccountingSupplierParty
Pattern vrbl-invoice-jp-1p0
Severity fatal

Implementation

(
	not($JPSupplierCountry = 'JP')
	or
	/ubl:Invoice/cbc:InvoiceTypeCode = '480'
)
or
boolean(cac:Party/cac:PartyTaxScheme/cbc:CompanyID)