CFDI40198
El valor del campo Importe no se encuentra entre el limite inferior y superior permitido (…, … × …).
In English The Importe of a part (Parte) must be Cantidad times ValorUnitario, within the limits of Anexo 20.
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:Concepto/cfdi:Parte
Test
not(@ValorUnitario and @Importe) or mx:between(@Cantidad, @ValorUnitario, true(), @Importe)
Checked with CFDI 4.0