CRP20267

Debe existir al menos uno de los campos TotalTrasladosBaseIVA16 y/o TotalTrasladosBaseIVA8 y/o TotalTrasladosBaseIVA0 y/o TotalTrasladosBaseIVAExento.

In English When a payment transfers VAT, the Totales must have at least one of TotalTrasladosBaseIVA16, TotalTrasladosBaseIVA8, TotalTrasladosBaseIVA0 and TotalTrasladosBaseIVAExento.

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:TrasladosP/pago20:TrasladoP
Test
not($tax = '002') or $totals/@TotalTrasladosBaseIVA16 or $totals/@TotalTrasladosBaseIVA8 or $totals/@TotalTrasladosBaseIVA0 or $totals/@TotalTrasladosBaseIVAExento

Checked with CFDI 4.0