CRP20264

Debe existir al menos uno de los campos TotalRetencionesIVA, TotalRetencionesISR, TotalRetencionesIEPS.

In English When a payment has withholdings, the Totales must have at least one of TotalRetencionesIVA, TotalRetencionesISR and TotalRetencionesIEPS.

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:ImpuestosP/pago20:RetencionesP/pago20:RetencionP
Test
$totals/@TotalRetencionesIVA or $totals/@TotalRetencionesISR or $totals/@TotalRetencionesIEPS

Checked with CFDI 4.0