CRP20229

El campo TipoCadPago no se debe registrar.

In English TipoCadPago (an SPEI payment chain) is only given for transfers, payment form 03.

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:Pagos/pago20:Pago
Test
not(@TipoCadPago) or $form = '03'

Checked with CFDI 4.0