Rules
VRBL-INV-PT-2p1-205
Basic Info
| Rule | An Invoice line with ClassifiedTaxCategory ID "E" or "ISE" must contain a non-empty Tax Exemption Reason Code or Tax Exemption Reason. |
| Context |
/ubl:Invoice/cac:InvoiceLine/cac:Item
|
| Pattern | vrbl-invoice-pt-2p1 |
| Severity | fatal |
Implementation
not(
cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'E' or normalize-space(cbc:ID) = 'ISE']
)
or
cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'E' or normalize-space(cbc:ID) = 'ISE']
[cbc:TaxExemptionReasonCode[normalize-space(.) != ''] or cbc:TaxExemptionReason[normalize-space(.) != '']]