CRP20259
Si el valor registrado en el campo TipoFactorDR que corresponde a Traslado es Tasa o Cuota, se deben registrar los campos TasaOCuotaDR e ImporteDR.
In English A transferred tax of a related document with TipoFactorDR Tasa or Cuota must have TasaOCuotaDR and ImporteDR.
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.
pago20:ImpuestosDR/pago20:TrasladosDR/pago20:TrasladoDR
not(@TipoFactorDR = ('Tasa', 'Cuota')) or (@TasaOCuotaDR and @ImporteDR)
Checked with CFDI 4.0