CRP20225

El campo CtaOrdenante no cumple con el patrón requerido (…, FormaDePagoP …).

In English CtaOrdenante does not have the form catalogue c_FormaPago gives for the payment form: 10, 16 or 18 digits for a transfer (03), 16 for a card (04, 28), 11 or 18 for a cheque (02).

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(@CtaOrdenante) or empty($ord) or matches(@CtaOrdenante, concat('^(', $ord, ')$'))

Checked with CFDI 4.0