VRBL-INV-MX-1p0-32
Basic Info
| Rule | The SAT Product or Service Code must be numeric and exactly 8 digits long. |
| Context |
/ubl:Invoice/cac:InvoiceLine/cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode
|
| Pattern | vrbl-invoice-mx-1p0 |
| Severity | fatal |
Implementation
not(@listID = concat($VRBL-MX-Prefix, 'ProductService'))
or
(
string-length(.) = 8
and
string-length(translate(., '0123456789', '')) = 0
)