Rules
VRBL-INV-MX-1p0-105
Basic Info
| Rule | Either the Invoice Line Tax or the Invoice Line Withholding Tax must exist within the Invoice Line when the Invoiced Item Tax Category Code is equal to 'VRBL:MX:02' or 'S'. |
| Context |
/ubl:Invoice/cac:InvoiceLine
|
| Pattern | vrbl-invoice-mx-1p0 |
| Severity | fatal |
Implementation
not(
cac:Item/cac:ClassifiedTaxCategory/cbc:ID = concat($VRBL-MX-Prefix, '02')
or
cac:Item/cac:ClassifiedTaxCategory/cbc:ID = 'S'
)
or
boolean(cac:TaxTotal)
or
boolean(cac:WithholdingTaxTotal)