codigoPrefijo in ventas JSON must be the actual Firebird PREFIJO (e.g. "CMXC"), not the prefijo_tns_default config value which is intended for RDA/transaccion. Falls back to default_prefijo if row has no PREFIJO. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>