VRBL-INV-JP-1p0-7
Basic Info
| Rule | When the Seller Group is Japanese, then each Charge Group must provide the Charge Tax ID and the Charge Tax Percent, except if the Charge Group 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]
)
)