{ "artifact": "COMPANY_CONTEXT_RESOLUTION_V1", "firebird_writes": 0, "authority": { "CRT": { "emission_authority": "EMISSOR.EMITENTE_CRT", "evidence": [ "GtiVendas_NFCe.exe (NFC-e) and Envio NF-e.exe (NF-e) bind QrEmissor.EMITENTE_CRT/EMITENTE_UF/EMITENTE_CNPJ and never reference C000004.CRT or OPTANTE_SIMPLES", "SGV_5.0.6.124.exe (ERP) binds C000004.CRT (qrFilialCRT/QrSPEDFilialCRT) and OPTANTE_SIMPLES for the filial registry/SPED and has no EMITENTE_* binding", "emitted XML is not stored in the database (C000061.NFE_XML and XML_MES.XML hold file paths), so the CRT tag of issued documents could not be read directly" ], "status": "CRT_SOURCE_CONFLICT where the two values differ; the resolver refuses to choose without COMPANY_CRT_SOURCE" }, "UF": { "status": "UF_SOURCE_CONFIRMED", "evidence": "EMISSOR.EMITENTE_UF, C000004.UF and the cUF of 100% of emitted NFC-e keys agree in all 4 databases" }, "COMPANY": { "status": "confirmed", "evidence": "EMISSOR.EMITENTE_CNPJ equals exactly one C000004 CNPJ in every database and 100% of emitted NFC-e keys carry that CNPJ; other C000004 rows (RINCAO) have no documents" } }, "databases": { "CONSTRUCAO": { "c000004_rows": 1, "emissor_rows": 1, "companies": [ { "C000004_CODE": "000001", "CNPJ": "45**********90", "CNPJ_FINGERPRINT": "2d8e45d5", "UF_C000004": "BA", "CRT_C000004": "1", "OPTANTE_SIMPLES": "S", "EMISSOR_ID": 1, "UF_EMISSOR": "BA", "CRT_EMISSOR": "1", "DOCUMENT_COUNT": { "nfce_keys_with_this_cnpj": 24414, "nf_C000061_with_this_CODFILIAL": 115 }, "IS_ACTIVE_CANDIDATE": true, "EVIDENCE": [ "EMISSOR.EMITENTE_CNPJ equals this CNPJ", "24414 emitted NFC-e keys carry this CNPJ", "115 NF-e rows use CODFILIAL=000001" ] } ], "nfce_key_groups": [ { "cUF": "29", "cnpj": "45**********90", "model": "65", "n": 24414 } ], "nf_by_filial": { "000001": 115 } }, "MMMODAS": { "c000004_rows": 1, "emissor_rows": 1, "companies": [ { "C000004_CODE": "000001", "CNPJ": "01**********19", "CNPJ_FINGERPRINT": "b89a9205", "UF_C000004": "BA", "CRT_C000004": "2", "OPTANTE_SIMPLES": "N", "EMISSOR_ID": 1, "UF_EMISSOR": "BA", "CRT_EMISSOR": "1", "DOCUMENT_COUNT": { "nfce_keys_with_this_cnpj": 36287, "nf_C000061_with_this_CODFILIAL": 26 }, "IS_ACTIVE_CANDIDATE": true, "EVIDENCE": [ "EMISSOR.EMITENTE_CNPJ equals this CNPJ", "36287 emitted NFC-e keys carry this CNPJ", "26 NF-e rows use CODFILIAL=000001" ] } ], "nfce_key_groups": [ { "cUF": "29", "cnpj": "01**********19", "model": "65", "n": 36287 } ], "nf_by_filial": { "000001": 26 } }, "RINCAO": { "c000004_rows": 3, "emissor_rows": 1, "companies": [ { "C000004_CODE": "000001", "CNPJ": "09**********54", "CNPJ_FINGERPRINT": "df6060d6", "UF_C000004": "BA", "CRT_C000004": "1", "OPTANTE_SIMPLES": "S", "EMISSOR_ID": 1, "UF_EMISSOR": "BA", "CRT_EMISSOR": "3", "DOCUMENT_COUNT": { "nfce_keys_with_this_cnpj": 173448, "nf_C000061_with_this_CODFILIAL": 278 }, "IS_ACTIVE_CANDIDATE": true, "EVIDENCE": [ "EMISSOR.EMITENTE_CNPJ equals this CNPJ", "173448 emitted NFC-e keys carry this CNPJ", "278 NF-e rows use CODFILIAL=000001" ] }, { "C000004_CODE": "000005", "CNPJ": "13**********35", "CNPJ_FINGERPRINT": "1bdef593", "UF_C000004": "SP", "CRT_C000004": null, "OPTANTE_SIMPLES": "N", "EMISSOR_ID": null, "UF_EMISSOR": null, "CRT_EMISSOR": null, "DOCUMENT_COUNT": { "nfce_keys_with_this_cnpj": 0, "nf_C000061_with_this_CODFILIAL": 0 }, "IS_ACTIVE_CANDIDATE": false, "EVIDENCE": [ "no EMISSOR row with this CNPJ", "no emitted NFC-e key carries this CNPJ" ] }, { "C000004_CODE": "000007", "CNPJ": "15**********87", "CNPJ_FINGERPRINT": "862a9c31", "UF_C000004": "BA", "CRT_C000004": null, "OPTANTE_SIMPLES": "N", "EMISSOR_ID": null, "UF_EMISSOR": null, "CRT_EMISSOR": null, "DOCUMENT_COUNT": { "nfce_keys_with_this_cnpj": 0, "nf_C000061_with_this_CODFILIAL": 0 }, "IS_ACTIVE_CANDIDATE": false, "EVIDENCE": [ "no EMISSOR row with this CNPJ", "no emitted NFC-e key carries this CNPJ" ] } ], "nfce_key_groups": [ { "cUF": "29", "cnpj": "09**********54", "model": "65", "n": 173448 } ], "nf_by_filial": { "000001": 278 } }, "UNIAO": { "c000004_rows": 1, "emissor_rows": 1, "companies": [ { "C000004_CODE": "000001", "CNPJ": "09**********05", "CNPJ_FINGERPRINT": "ded0967a", "UF_C000004": "BA", "CRT_C000004": "3", "OPTANTE_SIMPLES": "S", "EMISSOR_ID": 1, "UF_EMISSOR": "BA", "CRT_EMISSOR": "1", "DOCUMENT_COUNT": { "nfce_keys_with_this_cnpj": 48826, "nf_C000061_with_this_CODFILIAL": 82 }, "IS_ACTIVE_CANDIDATE": true, "EVIDENCE": [ "EMISSOR.EMITENTE_CNPJ equals this CNPJ", "48826 emitted NFC-e keys carry this CNPJ", "82 NF-e rows use CODFILIAL=000001" ] } ], "nfce_key_groups": [ { "cUF": "29", "cnpj": "09**********05", "model": "65", "n": 48826 } ], "nf_by_filial": { "000001": 82 } } } }