CFDI40149

El campo DomicilioFiscalReceptor, no es igual al valor del campo LugarExpedicion (…, …).

In English With a generic RFC (XAXX010101000 or XEXX010101000), the receiver's DomicilioFiscalReceptor must be the postal code of the place of issue (LugarExpedicion).

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
/cfdi:Comprobante/cfdi:Receptor
Test
not($generic) or @DomicilioFiscalReceptor = ../@LugarExpedicion

Checked with CFDI 4.0