CRP20278
Cuando se registre el valor "06" o "08" en el campo ObjetoImpDR, el valor del campo ImpuestoDR de los nodos hijo RetencionDR y/o TrasladoDR del nodo DoctoRelacionado debe ser distinto de los valores "002" (IVA) y/o "003" (IEPS).
In English A related document with ObjetoImpDR 06 or 08 (no VAT transferred) must have no VAT (002) or IEPS (003) in its taxes; it may have an ISR withholding (001).
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.
pago20:Pago/pago20:DoctoRelacionado
not(@ObjetoImpDR = ('06', '08')) or not($imp/*/*[@ImpuestoDR = ('002', '003')])
Checked with CFDI 4.0