CFDI40161

La clave del campo UsoCFDI debe corresponder con el tipo de persona (física o moral) y el régimen correspondiente conforme al catálogo c_UsoCFDI (…, régimen …).

In English UsoCFDI must be a use catalogue c_UsoCFDI allows for the receiver's kind of person and regime: the D uses are for people only, G03 is not for regime 616 (use S01).

error: the document is invalid

Why it fails

  • G03 (general expenses) for the general public or a receiver in regime 616, who must get S01.
  • A personal deduction (D01 to D10) on an invoice to a company.

How to fix it

Ask the receiver for the use; for the general public and regime 616 give S01, for a payment receipt CP01.

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
/cfdi:Comprobante/cfdi:Receptor
Test
mx:use(@UsoCFDI, @RegimenFiscalReceptor, $rfc)

Checked with CFDI 4.0