VRBL-INV-JP-1p0-8
Basic Info
| Rule | When the Seller Group is Japanese, then each Allowance Group must provide the Allowance Tax ID and the Allowance Tax Percent, except if the Allowance Group is outside the scope of tax. |
| Context |
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']
|
| 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]
)
)