VRBL-INV-JP-1p0-17

Basic Info

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

Implementation

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