VRBL-INV-JP-1p0-7
Basic Info
| Rule | When the Seller is Japanese, then each Document Level Charges must provide the Document Level Charge Tax Category Code and the Document Level Charge Tax Rate, except if the Document Level Charges is outside the scope of tax. |
| Context |
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']
|
| Pattern | vrbl-invoice-jp-1p0 |
| Severity | fatal |
Implementation
not($JPSupplierCountry = 'JP')
or
(
(
../cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT' and cbc:ID = 'O']
and
not(cac:TaxCategory[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT' and cbc:Percent])
)
or
(
cac:TaxCategory[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT' and cbc:ID]
and
cac:TaxCategory[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT' and cbc:Percent]
)
)