VRBL-INV-JP-1p0-6
Basic Info
|
Rule
|
When the Seller is Japanese, and a date of the Invoicing Period or the Invoice Line Period is on and after October 1st 2023, the Seller Tax ID used for VAT ID must be coded by using a Registration Number for Qualified Invoice purpose in Japan, which consists of "T" followed by 13 digits. |
|
Context
|
/ubl:Invoice/cac:AccountingSupplierParty
|
|
Pattern
|
vrbl-invoice-jp-1p0 |
|
Severity
|
fatal |
Implementation
not($JPSupplierCountry = 'JP')
or
not(
boolean(
../cac:InvoicePeriod[
number(translate(substring(normalize-space(cbc:StartDate), 1, 10), '-', '')) >= 20231001
or
number(translate(substring(normalize-space(cbc:EndDate), 1, 10), '-', '')) >= 20231001
]
)
or
boolean(
../cac:InvoiceLine/cac:InvoicePeriod[
number(translate(substring(normalize-space(cbc:StartDate), 1, 10), '-', '')) >= 20231001
or
number(translate(substring(normalize-space(cbc:EndDate), 1, 10), '-', '')) >= 20231001
]
)
)
or
(
string-length(normalize-space(cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID)) = 14
and
substring(normalize-space(cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID), 1, 1) = 'T'
and
string-length(translate(substring(normalize-space(cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID), 2, 13), $Numerics, '')) = 0
)