CFDI40216

El importe del campo Base correspondiente a Traslado no es igual al redondeo de la suma de los importes de las bases trasladados registrados en los conceptos (Base …, conceptos …).

In English The Base of an exempt transferred tax in the summary must be the sum of the lines' exempt bases of that tax, rounded to the currency's decimals.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
/cfdi:Comprobante/cfdi:Impuestos/cfdi:Traslados/cfdi:Traslado
Test
not($factor = 'Exento') or abs(mx:dec(@Base) - $bases) le $half

Checked with CFDI 4.0