CRP20247
El nodo hijo de ImpuestosDR del nodo DoctoRelacionado, no debe existir.
In English A related document with ObjetoImpDR 01, 03, 04 or 05 must not have ImpuestosDR.
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
pago20:Pago/pago20:DoctoRelacionado
Test
not(@ObjetoImpDR = ('01', '03', '04', '05') and $imp)
Checked with CFDI 4.0