VRBL-INV-IT-1p2-229
Basic Info
| Rule | The Invoice Line Tax Group must exist, when the Invoice Line Tax ID indicates a Tax Exemption. |
| Context |
/ubl:Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory
|
| Pattern | vrbl-invoice-it-1p2 |
| Severity | fatal |
Implementation
not(contains($VRBL-IT-table-TaxExemptionReasonCode, concat('#', normalize-space(cbc:ID), ' ')))
or
boolean(cbc:TaxExemptionReasonCode)