chore: establish project baseline

This commit is contained in:
OpenCode
2026-09-21 15:51:47 -03:00
commit 9dcc263217
459 changed files with 447890 additions and 0 deletions
+604
View File
@@ -0,0 +1,604 @@
{
"file": "CONSTRUCAO.FDB",
"size_mb": 88.7,
"mode": "READ_ONLY",
"firebird_server_version": "WI-V6.3.9.27139 Firebird 2.5",
"ods": "11.2",
"tables": 336,
"schema_fingerprint": "1414a15950d0b623addd12f8fdb8cbe59a02d8d75211f2de181affaeb57d2781",
"C000004_present": true,
"C000025_present": true,
"company": {
"status": "OK",
"uf": "BA",
"crt": "1",
"OPTANTE_SIMPLES": "S",
"OPTANTE_SUPER_SIMPLES": "N",
"SUBSTITUTO_TRIBUTARIO": "N",
"CONTRIBUINTE_IPI": "N",
"ICMS_CSOSN": "102",
"name": "UNIAO MATERIAIS DE CONSTRUCAO",
"rows": 1,
"rows_summary": [
[
"000001",
"BA",
"1"
]
],
"filial_name_first_row": "UNIÃO MATERIAIS DE CONSTRUÇÃO PALMA LTDA",
"emissor_crt": [
"1"
]
},
"table_rows": {
"MESAS": 0,
"R000002": 0,
"RECEITA_INGREDIENTES": 0,
"DELIVERY_M": 0,
"C000051": 1,
"NFCE": 24466,
"NFCE_ITENS": 28934,
"C000032": 91886,
"C000062": 547,
"C000088": 0,
"C000100": 3712,
"C000030": 590,
"C000061": 115
},
"C000025_columns": 190,
"field_types": {
"CLASSIFICACAO_FISCAL": [
37,
20,
0
],
"CFOP_ENTRADA": [
14,
4,
0
],
"CST_ENTRADA": [
14,
4,
0
],
"CFOP": [
37,
4,
0
],
"CST": [
37,
10,
0
],
"ALIQUOTA": [
16,
8,
-2
],
"CEST": [
37,
7,
0
],
"SITUACAO_TRIBUTARIA": [
37,
2,
0
],
"COD_ENTRADA_COFINS": [
37,
3,
0
],
"COD_SAIDA_COFINS": [
37,
3,
0
],
"ALIQ_COFINS": [
37,
8,
0
],
"COD_ENTRADA_PIS": [
37,
3,
0
],
"COD_SAIDA_PIS": [
37,
3,
0
],
"ALIQ_PIS": [
37,
8,
0
],
"CSOSN": [
37,
60,
0
],
"IPI": [
27,
8,
-2
],
"CST_IPI": [
14,
3,
0
],
"IAT": [
37,
1,
0
],
"INCIDENCIA_PISCOFINS": [
37,
30,
0
],
"PISCOFINS": [
37,
1,
0
],
"IPPT": [
37,
1,
0
],
"COD_ORIGEM_MERCADORIA": [
8,
4,
0
]
},
"capabilities": {
"supports_ncm": true,
"supports_cfop_entry": true,
"supports_cfop_exit": true,
"supports_cst_entry": true,
"supports_cst_exit": true,
"supports_icms_rate": true,
"supports_cest": true,
"supports_csosn": true,
"supports_ipi": true,
"supports_pis": true,
"supports_cofins": true,
"supports_origin": true,
"supports_iat": true,
"supports_incidence": true,
"supports_ippt": true
},
"field_compatibility": {
"CLASSIFICACAO_FISCAL": "PRESENT_OK",
"CFOP_ENTRADA": "PRESENT_OK",
"CST_ENTRADA": "PRESENT_OK",
"CFOP": "PRESENT_OK",
"CST": "PRESENT_OK",
"ALIQUOTA": "PRESENT_OK",
"CEST": "PRESENT_OK",
"SITUACAO_TRIBUTARIA": "PRESENT_OK",
"COD_ENTRADA_COFINS": "PRESENT_OK",
"COD_SAIDA_COFINS": "PRESENT_OK",
"ALIQ_COFINS": "PRESENT_OK",
"COD_ENTRADA_PIS": "PRESENT_OK",
"COD_SAIDA_PIS": "PRESENT_OK",
"ALIQ_PIS": "PRESENT_OK",
"CSOSN": "PRESENT_OK",
"IPI": "PRESENT_OK",
"CST_IPI": "PRESENT_OK",
"IAT": "PRESENT_OK",
"INCIDENCIA_PISCOFINS": "PRESENT_OK",
"PISCOFINS": "PRESENT_OK",
"IPPT": "PRESENT_OK",
"COD_ORIGEM_MERCADORIA": "PRESENT_OK"
},
"product_count": 3712,
"fiscal_field_population": {
"CLASSIFICACAO_FISCAL": 3712,
"CFOP_ENTRADA": 3705,
"CST_ENTRADA": 3704,
"CFOP": 3710,
"CST": 3712,
"ALIQUOTA": 3712,
"CEST": 3467,
"SITUACAO_TRIBUTARIA": 3687,
"COD_ENTRADA_COFINS": 0,
"COD_SAIDA_COFINS": 0,
"ALIQ_COFINS": 0,
"COD_ENTRADA_PIS": 0,
"COD_SAIDA_PIS": 0,
"ALIQ_PIS": 0,
"CSOSN": 3709,
"IPI": 0,
"CST_IPI": 0,
"IAT": 3712,
"INCIDENCIA_PISCOFINS": 3712,
"PISCOFINS": 3712,
"IPPT": 3712,
"COD_ORIGEM_MERCADORIA": 1
},
"fiscal_field_distribution": {
"CLASSIFICACAO_FISCAL": {
"distinct": 420,
"top": [
[
"87141000",
555
],
[
"39174090",
170
],
[
"73181500",
105
],
[
"32091010",
90
],
[
"76101000",
65
],
[
"84818011",
60
],
[
"82041100",
52
],
[
"40103400",
48
]
]
},
"CFOP_ENTRADA": {
"distinct": 15,
"top": [
[
"1403",
1782
],
[
"1102",
1467
],
[
"2202",
427
],
[
"1402",
9
],
[
null,
7
],
[
"1405",
5
],
[
"2203",
4
],
[
"1406",
3
]
]
},
"CST_ENTRADA": {
"distinct": 5,
"top": [
[
"060",
2204
],
[
"020",
1496
],
[
null,
8
],
[
"040",
3
],
[
"0200",
1
]
]
},
"CFOP": {
"distinct": 3,
"top": [
[
"5405",
2266
],
[
"5102",
1444
],
[
null,
2
]
]
},
"CST": {
"distinct": 3,
"top": [
[
"060",
2266
],
[
"040",
1444
],
[
"000",
2
]
]
},
"ALIQUOTA": {
"distinct": 5,
"top": [
[
"20.5",
3701
],
[
"0",
6
],
[
"19",
2
],
[
"22.5",
2
],
[
"17",
1
]
]
},
"CEST": {
"distinct": 195,
"top": [
[
"0107600",
610
],
[
null,
243
],
[
"1000600",
186
],
[
"2806300",
141
],
[
"2400100",
132
],
[
"1005800",
131
],
[
"1007900",
104
],
[
"2805700",
95
]
]
},
"SITUACAO_TRIBUTARIA": {
"distinct": 2,
"top": [
[
"T",
3687
],
[
null,
25
]
]
},
"COD_ENTRADA_COFINS": {
"distinct": 1,
"top": [
[
null,
3712
]
]
},
"COD_SAIDA_COFINS": {
"distinct": 1,
"top": [
[
null,
3712
]
]
},
"ALIQ_COFINS": {
"distinct": 1,
"top": [
[
null,
3712
]
]
},
"COD_ENTRADA_PIS": {
"distinct": 1,
"top": [
[
null,
3712
]
]
},
"COD_SAIDA_PIS": {
"distinct": 1,
"top": [
[
null,
3712
]
]
},
"ALIQ_PIS": {
"distinct": 1,
"top": [
[
null,
3712
]
]
},
"CSOSN": {
"distinct": 3,
"top": [
[
"500",
2265
],
[
"102",
1444
],
[
null,
3
]
]
},
"IPI": {
"distinct": 1,
"top": [
[
null,
3712
]
]
},
"CST_IPI": {
"distinct": 1,
"top": [
[
null,
3712
]
]
},
"IAT": {
"distinct": 1,
"top": [
[
"A",
3712
]
]
},
"INCIDENCIA_PISCOFINS": {
"distinct": 1,
"top": [
[
"NENHUMA",
3712
]
]
},
"PISCOFINS": {
"distinct": 1,
"top": [
[
"N",
3712
]
]
},
"IPPT": {
"distinct": 1,
"top": [
[
"T",
3712
]
]
},
"COD_ORIGEM_MERCADORIA": {
"distinct": 2,
"top": [
[
null,
3711
],
[
"2",
1
]
]
}
},
"kitchen_products": 0,
"vehicle_products": 0,
"grade_tables": {},
"segment_inferred": {
"segment": "CONSTRUCTION",
"score": {
"RESTAURANT": 0,
"AUTO_REPAIR": 0,
"APPAREL": 0,
"RETAIL_MARKET": 0,
"CONSTRUCTION": 1
},
"evidence": [
"company name in C000004 contains CONSTRU (weak, name is data, not the file name)"
],
"signals": {
"restaurant_tables_rows": 0,
"kitchen_products": 0,
"recipes": 0,
"service_orders": 1,
"vehicle_products": 0,
"grade_items": 0,
"nfce_items": 28934
},
"note": "inferred from table population, not from the file name"
},
"type_variations_vs_reference": {},
"schema_class": "COMPATIBLE_WITH_VARIATIONS"
}
@@ -0,0 +1,69 @@
{
"file": "CONSTRUCAO.FDB",
"company": {
"status": "OK",
"uf": "BA",
"crt": "1",
"error": null
},
"TOTAL_PRODUCTS": 3712,
"metrics": {
"NCM_VALID": 3698,
"IPI_SOURCE_BLANK": 1220,
"CFOP_CONTEXT_REQUIRED": 1514,
"ST_CANDIDATE": 434,
"ST_WITHHOLDING_UNKNOWN": 3712,
"PRODUCT_ROLE_KNOWN": 3708,
"ROLE_RESALE": 3707,
"CSOSN_CONTEXT_REQUIRED": 3638,
"CFOP_RESOLVED": 2198,
"ST_CONFIRMED": 867,
"IPI_NUMERIC": 1497,
"IPI_CHANGE_REQUIRED": 1497,
"IPI_WRITE_ELIGIBLE": 1497,
"ST_UNKNOWN": 2337,
"IPI_AMBIGUOUS": 918,
"ST_NOT_APPLICABLE": 74,
"CSOSN_CANDIDATES": 74,
"NCM_INVALID": 14,
"IPI_NO_MATCH": 14,
"IPI_NON_NUMERIC": 63,
"PRODUCT_ROLE_UNKNOWN": 4,
"ROLE_UNKNOWN": 4,
"ROLE_INPUT": 1
},
"quality": {
"ncm_valid_share": 0.9962,
"cest_filled": 3467,
"csosn_filled": 3709,
"cfop_filled": 3710,
"ipi_filled": 0,
"cfop_distinct": 3,
"cfop_top": [
[
"5405",
2266
],
[
"5102",
1444
],
[
null,
2
]
],
"situacao_tributaria": {
"T": 3687,
"null": 25
},
"purchase_items_C000088": 0,
"products_with_purchase_evidence": 0,
"recipes": 0,
"composed_products": 0
},
"guards_applied": {
"st_dataset_ba_only": false,
"csosn_requires_crt1": false
}
}
+644
View File
@@ -0,0 +1,644 @@
{
"file": "MMMODAS.FDB",
"size_mb": 248.5,
"mode": "READ_ONLY",
"firebird_server_version": "WI-V6.3.9.27139 Firebird 2.5",
"ods": "11.2",
"tables": 338,
"schema_fingerprint": "2c4f68470a2c46c8df1ec18281880cfa833cf3dd44f458e25cdc4482ef8ac085",
"C000004_present": true,
"C000025_present": true,
"company": {
"status": "OK",
"uf": "BA",
"crt": "2",
"OPTANTE_SIMPLES": "N",
"OPTANTE_SUPER_SIMPLES": "N",
"SUBSTITUTO_TRIBUTARIO": "N",
"CONTRIBUINTE_IPI": "N",
"ICMS_CSOSN": "102",
"name": "MM MODAS",
"rows": 1,
"rows_summary": [
[
"000001",
"BA",
"2"
]
],
"filial_name_first_row": "PATRICIA B MATTOS MARTINS",
"emissor_crt": [
"1"
]
},
"table_rows": {
"MESAS": 0,
"R000002": 0,
"RECEITA_INGREDIENTES": 0,
"DELIVERY_M": 0,
"C000051": 0,
"NFCE": 36293,
"NFCE_ITENS": 26067,
"C000032": 192763,
"C000062": 66,
"C000088": 117657,
"C000100": 20997,
"C000030": 590,
"C000061": 26
},
"C000025_columns": 190,
"field_types": {
"CLASSIFICACAO_FISCAL": [
37,
20,
0
],
"CFOP_ENTRADA": [
14,
4,
0
],
"CST_ENTRADA": [
14,
4,
0
],
"CFOP": [
37,
4,
0
],
"CST": [
37,
10,
0
],
"ALIQUOTA": [
16,
8,
-2
],
"CEST": [
37,
7,
0
],
"SITUACAO_TRIBUTARIA": [
37,
2,
0
],
"COD_ENTRADA_COFINS": [
37,
3,
0
],
"COD_SAIDA_COFINS": [
37,
3,
0
],
"ALIQ_COFINS": [
37,
8,
0
],
"COD_ENTRADA_PIS": [
37,
3,
0
],
"COD_SAIDA_PIS": [
37,
3,
0
],
"ALIQ_PIS": [
37,
8,
0
],
"CSOSN": [
37,
60,
0
],
"IPI": [
27,
8,
-2
],
"CST_IPI": [
14,
3,
0
],
"IAT": [
37,
1,
0
],
"INCIDENCIA_PISCOFINS": [
37,
30,
0
],
"PISCOFINS": [
37,
1,
0
],
"IPPT": [
37,
1,
0
],
"COD_ORIGEM_MERCADORIA": [
8,
4,
0
]
},
"capabilities": {
"supports_ncm": true,
"supports_cfop_entry": true,
"supports_cfop_exit": true,
"supports_cst_entry": true,
"supports_cst_exit": true,
"supports_icms_rate": true,
"supports_cest": true,
"supports_csosn": true,
"supports_ipi": true,
"supports_pis": true,
"supports_cofins": true,
"supports_origin": true,
"supports_iat": true,
"supports_incidence": true,
"supports_ippt": true
},
"field_compatibility": {
"CLASSIFICACAO_FISCAL": "PRESENT_OK",
"CFOP_ENTRADA": "PRESENT_OK",
"CST_ENTRADA": "PRESENT_OK",
"CFOP": "PRESENT_OK",
"CST": "PRESENT_OK",
"ALIQUOTA": "PRESENT_OK",
"CEST": "PRESENT_OK",
"SITUACAO_TRIBUTARIA": "PRESENT_OK",
"COD_ENTRADA_COFINS": "PRESENT_OK",
"COD_SAIDA_COFINS": "PRESENT_OK",
"ALIQ_COFINS": "PRESENT_OK",
"COD_ENTRADA_PIS": "PRESENT_OK",
"COD_SAIDA_PIS": "PRESENT_OK",
"ALIQ_PIS": "PRESENT_OK",
"CSOSN": "PRESENT_OK",
"IPI": "PRESENT_OK",
"CST_IPI": "PRESENT_OK",
"IAT": "PRESENT_OK",
"INCIDENCIA_PISCOFINS": "PRESENT_OK",
"PISCOFINS": "PRESENT_OK",
"IPPT": "PRESENT_OK",
"COD_ORIGEM_MERCADORIA": "PRESENT_OK"
},
"product_count": 20997,
"fiscal_field_population": {
"CLASSIFICACAO_FISCAL": 20997,
"CFOP_ENTRADA": 20967,
"CST_ENTRADA": 20964,
"CFOP": 20942,
"CST": 20997,
"ALIQUOTA": 20947,
"CEST": 3,
"SITUACAO_TRIBUTARIA": 20994,
"COD_ENTRADA_COFINS": 0,
"COD_SAIDA_COFINS": 0,
"ALIQ_COFINS": 0,
"COD_ENTRADA_PIS": 0,
"COD_SAIDA_PIS": 0,
"ALIQ_PIS": 0,
"CSOSN": 20935,
"IPI": 1,
"CST_IPI": 0,
"IAT": 20997,
"INCIDENCIA_PISCOFINS": 20997,
"PISCOFINS": 20997,
"IPPT": 20997,
"COD_ORIGEM_MERCADORIA": 0
},
"fiscal_field_distribution": {
"CLASSIFICACAO_FISCAL": {
"distinct": 247,
"top": [
[
"61122000",
2457
],
[
"61061000",
2081
],
[
"62044900",
1584
],
[
"62061000",
1147
],
[
"62046900",
1113
],
[
"61091000",
1041
],
[
"61059000",
1020
],
[
"62046200",
968
]
]
},
"CFOP_ENTRADA": {
"distinct": 26,
"top": [
[
"2102",
16682
],
[
"1102",
4167
],
[
"6949",
29
],
[
null,
26
],
[
"5102",
25
],
[
"210",
13
],
[
"2949",
13
],
[
"2910",
6
]
]
},
"CST_ENTRADA": {
"distinct": 20,
"top": [
[
"020",
20779
],
[
"090",
41
],
[
null,
31
],
[
"02",
31
],
[
"0201",
28
],
[
"0205",
24
],
[
"040",
21
],
[
"20",
12
]
]
},
"CFOP": {
"distinct": 5,
"top": [
[
"5102",
20935
],
[
null,
54
],
[
"5101",
6
],
[
"",
1
],
[
"5405",
1
]
]
},
"CST": {
"distinct": 10,
"top": [
[
"040",
20916
],
[
"000",
62
],
[
"020",
9
],
[
"04",
4
],
[
"00",
1
],
[
"40",
1
],
[
"060",
1
],
[
"021",
1
]
]
},
"ALIQUOTA": {
"distinct": 11,
"top": [
[
"0",
20724
],
[
"20.5",
191
],
[
null,
50
],
[
"40",
15
],
[
"17",
9
],
[
"100",
3
],
[
"1",
1
],
[
"2",
1
]
]
},
"CEST": {
"distinct": 3,
"top": [
[
null,
20987
],
[
"",
7
],
[
"2805900",
3
]
]
},
"SITUACAO_TRIBUTARIA": {
"distinct": 2,
"top": [
[
"T",
20994
],
[
null,
3
]
]
},
"COD_ENTRADA_COFINS": {
"distinct": 1,
"top": [
[
null,
20997
]
]
},
"COD_SAIDA_COFINS": {
"distinct": 1,
"top": [
[
null,
20997
]
]
},
"ALIQ_COFINS": {
"distinct": 1,
"top": [
[
null,
20997
]
]
},
"COD_ENTRADA_PIS": {
"distinct": 1,
"top": [
[
null,
20997
]
]
},
"COD_SAIDA_PIS": {
"distinct": 1,
"top": [
[
null,
20997
]
]
},
"ALIQ_PIS": {
"distinct": 1,
"top": [
[
null,
20997
]
]
},
"CSOSN": {
"distinct": 5,
"top": [
[
"102",
20917
],
[
null,
56
],
[
"101",
17
],
[
"",
6
],
[
"500",
1
]
]
},
"IPI": {
"distinct": 2,
"top": [
[
null,
20996
],
[
"0.0",
1
]
]
},
"CST_IPI": {
"distinct": 1,
"top": [
[
null,
20997
]
]
},
"IAT": {
"distinct": 1,
"top": [
[
"A",
20997
]
]
},
"INCIDENCIA_PISCOFINS": {
"distinct": 1,
"top": [
[
"NENHUMA",
20997
]
]
},
"PISCOFINS": {
"distinct": 1,
"top": [
[
"N",
20997
]
]
},
"IPPT": {
"distinct": 1,
"top": [
[
"T",
20997
]
]
},
"COD_ORIGEM_MERCADORIA": {
"distinct": 1,
"top": [
[
null,
20997
]
]
}
},
"kitchen_products": 0,
"vehicle_products": 0,
"grade_tables": {},
"segment_inferred": {
"segment": "APPAREL",
"score": {
"RESTAURANT": 0,
"AUTO_REPAIR": 0,
"APPAREL": 1,
"RETAIL_MARKET": 0,
"CONSTRUCTION": 0
},
"evidence": [
"company name in C000004 contains MODAS (weak, name is data, not the file name)"
],
"signals": {
"restaurant_tables_rows": 0,
"kitchen_products": 0,
"recipes": 0,
"service_orders": 0,
"vehicle_products": 0,
"grade_items": 0,
"nfce_items": 26067
},
"note": "inferred from table population, not from the file name"
},
"type_variations_vs_reference": {},
"schema_class": "COMPATIBLE_WITH_VARIATIONS"
}
+77
View File
@@ -0,0 +1,77 @@
{
"file": "MMMODAS.FDB",
"company": {
"status": "OK",
"uf": "BA",
"crt": "2",
"error": null
},
"TOTAL_PRODUCTS": 20997,
"metrics": {
"NCM_VALID": 20881,
"IPI_SOURCE_BLANK": 18887,
"CFOP_CONTEXT_REQUIRED": 199,
"ST_CANDIDATE": 26,
"ST_WITHHOLDING_NOT_CONFIRMED": 10039,
"PRODUCT_ROLE_KNOWN": 20909,
"ROLE_RESALE": 20905,
"CSOSN_CONTEXT_REQUIRED": 20997,
"CFOP_RESOLVED": 20798,
"ST_UNKNOWN": 20933,
"ST_WITHHOLDING_UNKNOWN": 10958,
"IPI_NUMERIC": 1947,
"IPI_CHANGE_REQUIRED": 1947,
"IPI_WRITE_ELIGIBLE": 1947,
"NCM_INVALID": 116,
"IPI_NO_MATCH": 116,
"IPI_NON_NUMERIC": 38,
"CEST_CANDIDATES": 45,
"PRODUCT_ROLE_UNKNOWN": 88,
"ROLE_UNKNOWN": 88,
"ST_NOT_APPLICABLE": 38,
"ROLE_INPUT": 4,
"IPI_AMBIGUOUS": 9
},
"quality": {
"ncm_valid_share": 0.9945,
"cest_filled": 3,
"csosn_filled": 20935,
"cfop_filled": 20942,
"ipi_filled": 1,
"cfop_distinct": 5,
"cfop_top": [
[
"5102",
20935
],
[
null,
54
],
[
"5101",
6
],
[
"5405",
1
],
[
"",
1
]
],
"situacao_tributaria": {
"T": 20994,
"null": 3
},
"purchase_items_C000088": 117657,
"products_with_purchase_evidence": 10041,
"recipes": 0,
"composed_products": 0
},
"guards_applied": {
"st_dataset_ba_only": false,
"csosn_requires_crt1": true
}
}
+635
View File
@@ -0,0 +1,635 @@
{
"file": "RINCAO.FDB",
"size_mb": 876.5,
"mode": "READ_ONLY",
"firebird_server_version": "WI-V6.3.9.27139 Firebird 2.5",
"ods": "11.2",
"tables": 345,
"schema_fingerprint": "80565949a814b0e799956af8044b76bd6b22075175a0a0564f4d34f0b171e70b",
"C000004_present": true,
"C000025_present": true,
"company": {
"status": "UNAVAILABLE",
"error": "company context unavailable or ambiguous (3 distinct UF/CRT rows in C000004)",
"OPTANTE_SIMPLES": "S",
"OPTANTE_SUPER_SIMPLES": "N",
"SUBSTITUTO_TRIBUTARIO": "N",
"CONTRIBUINTE_IPI": "N",
"ICMS_CSOSN": "102",
"name": "RINCAO GAUCHO",
"rows": 3,
"rows_summary": [
[
"000001",
"BA",
"1"
],
[
"000005",
"SP",
null
],
[
"000007",
"BA",
null
]
],
"filial_name_first_row": "RESTAURANTE E PIZZARIA TURIZZI LTDA - ME",
"emissor_crt": [
"3"
]
},
"table_rows": {
"MESAS": 701,
"R000002": 14,
"RECEITA_INGREDIENTES": 0,
"DELIVERY_M": 0,
"C000051": 0,
"NFCE": 173526,
"NFCE_ITENS": 224355,
"C000032": 1586249,
"C000062": 548,
"C000088": 0,
"C000100": 895,
"C000030": 590,
"C000061": 278
},
"C000025_columns": 191,
"field_types": {
"CLASSIFICACAO_FISCAL": [
37,
20,
0
],
"CFOP_ENTRADA": [
14,
4,
0
],
"CST_ENTRADA": [
14,
4,
0
],
"CFOP": [
37,
4,
0
],
"CST": [
37,
10,
0
],
"ALIQUOTA": [
16,
8,
-2
],
"CEST": [
37,
7,
0
],
"SITUACAO_TRIBUTARIA": [
37,
2,
0
],
"COD_ENTRADA_COFINS": [
37,
3,
0
],
"COD_SAIDA_COFINS": [
37,
3,
0
],
"ALIQ_COFINS": [
37,
8,
0
],
"COD_ENTRADA_PIS": [
37,
3,
0
],
"COD_SAIDA_PIS": [
37,
3,
0
],
"ALIQ_PIS": [
37,
8,
0
],
"CSOSN": [
37,
60,
0
],
"IPI": [
27,
8,
-2
],
"CST_IPI": [
14,
3,
0
],
"IAT": [
37,
1,
0
],
"INCIDENCIA_PISCOFINS": [
37,
30,
0
],
"PISCOFINS": [
37,
1,
0
],
"IPPT": [
37,
1,
0
],
"COD_ORIGEM_MERCADORIA": [
8,
4,
0
]
},
"capabilities": {
"supports_ncm": true,
"supports_cfop_entry": true,
"supports_cfop_exit": true,
"supports_cst_entry": true,
"supports_cst_exit": true,
"supports_icms_rate": true,
"supports_cest": true,
"supports_csosn": true,
"supports_ipi": true,
"supports_pis": true,
"supports_cofins": true,
"supports_origin": true,
"supports_iat": true,
"supports_incidence": true,
"supports_ippt": true
},
"field_compatibility": {
"CLASSIFICACAO_FISCAL": "PRESENT_OK",
"CFOP_ENTRADA": "PRESENT_OK",
"CST_ENTRADA": "PRESENT_OK",
"CFOP": "PRESENT_OK",
"CST": "PRESENT_OK",
"ALIQUOTA": "PRESENT_OK",
"CEST": "PRESENT_OK",
"SITUACAO_TRIBUTARIA": "PRESENT_OK",
"COD_ENTRADA_COFINS": "PRESENT_OK",
"COD_SAIDA_COFINS": "PRESENT_OK",
"ALIQ_COFINS": "PRESENT_OK",
"COD_ENTRADA_PIS": "PRESENT_OK",
"COD_SAIDA_PIS": "PRESENT_OK",
"ALIQ_PIS": "PRESENT_OK",
"CSOSN": "PRESENT_OK",
"IPI": "PRESENT_OK",
"CST_IPI": "PRESENT_OK",
"IAT": "PRESENT_OK",
"INCIDENCIA_PISCOFINS": "PRESENT_OK",
"PISCOFINS": "PRESENT_OK",
"IPPT": "PRESENT_OK",
"COD_ORIGEM_MERCADORIA": "PRESENT_OK"
},
"product_count": 894,
"fiscal_field_population": {
"CLASSIFICACAO_FISCAL": 894,
"CFOP_ENTRADA": 3,
"CST_ENTRADA": 3,
"CFOP": 894,
"CST": 894,
"ALIQUOTA": 891,
"CEST": 640,
"SITUACAO_TRIBUTARIA": 893,
"COD_ENTRADA_COFINS": 1,
"COD_SAIDA_COFINS": 78,
"ALIQ_COFINS": 1,
"COD_ENTRADA_PIS": 1,
"COD_SAIDA_PIS": 78,
"ALIQ_PIS": 1,
"CSOSN": 885,
"IPI": 0,
"CST_IPI": 0,
"IAT": 894,
"INCIDENCIA_PISCOFINS": 894,
"PISCOFINS": 894,
"IPPT": 894,
"COD_ORIGEM_MERCADORIA": 0
},
"fiscal_field_distribution": {
"CLASSIFICACAO_FISCAL": {
"distinct": 22,
"top": [
[
"21069090",
234
],
[
"22030000",
148
],
[
"17041000",
109
],
[
"21050090",
108
],
[
"22082000",
76
],
[
"18063210",
53
],
[
"16042090",
50
],
[
"19022000",
35
]
]
},
"CFOP_ENTRADA": {
"distinct": 3,
"top": [
[
null,
891
],
[
"5102",
2
],
[
"1102",
1
]
]
},
"CST_ENTRADA": {
"distinct": 3,
"top": [
[
null,
891
],
[
"040",
2
],
[
"0",
1
]
]
},
"CFOP": {
"distinct": 4,
"top": [
[
"5102",
666
],
[
"5405",
226
],
[
"5202",
1
],
[
"1556",
1
]
]
},
"CST": {
"distinct": 5,
"top": [
[
"000",
584
],
[
"060",
226
],
[
"040",
82
],
[
"120",
1
],
[
"090",
1
]
]
},
"ALIQUOTA": {
"distinct": 6,
"top": [
[
"20.5",
668
],
[
"0",
215
],
[
"20.05",
4
],
[
"17",
3
],
[
null,
3
],
[
"21.5",
1
]
]
},
"CEST": {
"distinct": 16,
"top": [
[
"1709700",
290
],
[
null,
249
],
[
"0302100",
116
],
[
"1708000",
53
],
[
"2300100",
51
],
[
"0200600",
42
],
[
"1704802",
24
],
[
"2806200",
22
]
]
},
"SITUACAO_TRIBUTARIA": {
"distinct": 2,
"top": [
[
"T",
893
],
[
null,
1
]
]
},
"COD_ENTRADA_COFINS": {
"distinct": 2,
"top": [
[
null,
893
],
[
"000",
1
]
]
},
"COD_SAIDA_COFINS": {
"distinct": 2,
"top": [
[
null,
816
],
[
"4",
78
]
]
},
"ALIQ_COFINS": {
"distinct": 2,
"top": [
[
null,
893
],
[
"3",
1
]
]
},
"COD_ENTRADA_PIS": {
"distinct": 2,
"top": [
[
null,
893
],
[
"049",
1
]
]
},
"COD_SAIDA_PIS": {
"distinct": 3,
"top": [
[
null,
815
],
[
"4",
78
],
[
"",
1
]
]
},
"ALIQ_PIS": {
"distinct": 2,
"top": [
[
null,
893
],
[
"0.65",
1
]
]
},
"CSOSN": {
"distinct": 5,
"top": [
[
"102",
440
],
[
"500",
240
],
[
"101",
204
],
[
"",
9
],
[
"900",
1
]
]
},
"IPI": {
"distinct": 1,
"top": [
[
null,
894
]
]
},
"CST_IPI": {
"distinct": 1,
"top": [
[
null,
894
]
]
},
"IAT": {
"distinct": 1,
"top": [
[
"A",
894
]
]
},
"INCIDENCIA_PISCOFINS": {
"distinct": 1,
"top": [
[
"NENHUMA",
894
]
]
},
"PISCOFINS": {
"distinct": 1,
"top": [
[
"N",
894
]
]
},
"IPPT": {
"distinct": 1,
"top": [
[
"T",
894
]
]
},
"COD_ORIGEM_MERCADORIA": {
"distinct": 1,
"top": [
[
null,
894
]
]
}
},
"kitchen_products": 223,
"vehicle_products": 0,
"grade_tables": {},
"segment_inferred": {
"segment": "RESTAURANT",
"score": {
"RESTAURANT": 4,
"AUTO_REPAIR": 0,
"APPAREL": 0,
"RETAIL_MARKET": 0,
"CONSTRUCTION": 0
},
"evidence": [
"company name in C000004 contains RESTAURANTE (weak, name is data, not the file name)",
"mesas/comandas rows=715",
"PROD_COZINHA products=223"
],
"signals": {
"restaurant_tables_rows": 715,
"kitchen_products": 223,
"recipes": 0,
"service_orders": 0,
"vehicle_products": 0,
"grade_items": 0,
"nfce_items": 224355
},
"note": "inferred from table population, not from the file name"
},
"type_variations_vs_reference": {},
"schema_class": "COMPATIBLE_WITH_VARIATIONS"
}
+67
View File
@@ -0,0 +1,67 @@
{
"file": "RINCAO.FDB",
"company": {
"status": "UNAVAILABLE",
"uf": null,
"crt": null,
"error": "company context unavailable or ambiguous (3 distinct UF/CRT rows in C000004)"
},
"TOTAL_PRODUCTS": 894,
"metrics": {
"NCM_VALID": 894,
"IPI_AMBIGUOUS": 149,
"CFOP_CONTEXT_REQUIRED": 894,
"ST_UNKNOWN": 894,
"ST_WITHHOLDING_UNKNOWN": 894,
"PRODUCT_ROLE_KNOWN": 668,
"ROLE_RESALE": 667,
"CSOSN_CONTEXT_REQUIRED": 894,
"IPI_NUMERIC": 349,
"IPI_CHANGE_REQUIRED": 349,
"IPI_WRITE_ELIGIBLE": 349,
"IPI_SOURCE_BLANK": 378,
"PRODUCT_ROLE_UNKNOWN": 226,
"ROLE_UNKNOWN": 226,
"IPI_NON_NUMERIC": 18,
"CEST_CANDIDATES": 2,
"ROLE_INPUT": 1
},
"quality": {
"ncm_valid_share": 1.0,
"cest_filled": 640,
"csosn_filled": 885,
"cfop_filled": 894,
"ipi_filled": 0,
"cfop_distinct": 4,
"cfop_top": [
[
"5102",
666
],
[
"5405",
226
],
[
"1556",
1
],
[
"5202",
1
]
],
"situacao_tributaria": {
"T": 893,
"null": 1
},
"purchase_items_C000088": 0,
"products_with_purchase_evidence": 0,
"recipes": 0,
"composed_products": 0
},
"guards_applied": {
"st_dataset_ba_only": true,
"csosn_requires_crt1": true
}
}
+669
View File
@@ -0,0 +1,669 @@
{
"file": "UNIAO.FDB",
"size_mb": 484.1,
"mode": "READ_ONLY",
"firebird_server_version": "WI-V6.3.9.27139 Firebird 2.5",
"ods": "11.2",
"tables": 337,
"schema_fingerprint": "36ed9ffd6fd843955167f2ef389588f4fa184b187ae94a887b50da9ad790150a",
"C000004_present": true,
"C000025_present": true,
"company": {
"status": "OK",
"uf": "BA",
"crt": "3",
"OPTANTE_SIMPLES": "S",
"OPTANTE_SUPER_SIMPLES": "N",
"SUBSTITUTO_TRIBUTARIO": "N",
"CONTRIBUINTE_IPI": "N",
"ICMS_CSOSN": "102",
"name": "MERCADO UNIAO",
"rows": 1,
"rows_summary": [
[
"000001",
"BA",
"3"
]
],
"filial_name_first_row": "GELSON NEVES DA SILVA",
"emissor_crt": [
"1"
]
},
"table_rows": {
"MESAS": 0,
"R000002": 1,
"RECEITA_INGREDIENTES": 0,
"DELIVERY_M": 0,
"C000051": 0,
"NFCE": 48872,
"NFCE_ITENS": 121266,
"C000032": 1582133,
"C000062": 1170,
"C000088": 0,
"C000100": 8942,
"C000030": 590,
"C000061": 82
},
"C000025_columns": 190,
"field_types": {
"CLASSIFICACAO_FISCAL": [
37,
20,
0
],
"CFOP_ENTRADA": [
14,
4,
0
],
"CST_ENTRADA": [
14,
4,
0
],
"CFOP": [
37,
4,
0
],
"CST": [
37,
10,
0
],
"ALIQUOTA": [
16,
8,
-2
],
"CEST": [
37,
10,
0
],
"SITUACAO_TRIBUTARIA": [
37,
2,
0
],
"COD_ENTRADA_COFINS": [
37,
3,
0
],
"COD_SAIDA_COFINS": [
37,
3,
0
],
"ALIQ_COFINS": [
37,
8,
0
],
"COD_ENTRADA_PIS": [
37,
3,
0
],
"COD_SAIDA_PIS": [
37,
3,
0
],
"ALIQ_PIS": [
37,
8,
0
],
"CSOSN": [
37,
60,
0
],
"IPI": [
27,
8,
-2
],
"CST_IPI": [
14,
3,
0
],
"IAT": [
37,
1,
0
],
"INCIDENCIA_PISCOFINS": [
37,
30,
0
],
"PISCOFINS": [
37,
1,
0
],
"IPPT": [
37,
1,
0
],
"COD_ORIGEM_MERCADORIA": [
8,
4,
0
]
},
"capabilities": {
"supports_ncm": true,
"supports_cfop_entry": true,
"supports_cfop_exit": true,
"supports_cst_entry": true,
"supports_cst_exit": true,
"supports_icms_rate": true,
"supports_cest": true,
"supports_csosn": true,
"supports_ipi": true,
"supports_pis": true,
"supports_cofins": true,
"supports_origin": true,
"supports_iat": true,
"supports_incidence": true,
"supports_ippt": true
},
"field_compatibility": {
"CLASSIFICACAO_FISCAL": "PRESENT_OK",
"CFOP_ENTRADA": "PRESENT_OK",
"CST_ENTRADA": "PRESENT_OK",
"CFOP": "PRESENT_OK",
"CST": "PRESENT_OK",
"ALIQUOTA": "PRESENT_OK",
"CEST": "PRESENT_OK",
"SITUACAO_TRIBUTARIA": "PRESENT_OK",
"COD_ENTRADA_COFINS": "PRESENT_OK",
"COD_SAIDA_COFINS": "PRESENT_OK",
"ALIQ_COFINS": "PRESENT_OK",
"COD_ENTRADA_PIS": "PRESENT_OK",
"COD_SAIDA_PIS": "PRESENT_OK",
"ALIQ_PIS": "PRESENT_OK",
"CSOSN": "PRESENT_OK",
"IPI": "PRESENT_OK",
"CST_IPI": "PRESENT_OK",
"IAT": "PRESENT_OK",
"INCIDENCIA_PISCOFINS": "PRESENT_OK",
"PISCOFINS": "PRESENT_OK",
"IPPT": "PRESENT_OK",
"COD_ORIGEM_MERCADORIA": "PRESENT_OK"
},
"product_count": 8942,
"fiscal_field_population": {
"CLASSIFICACAO_FISCAL": 8942,
"CFOP_ENTRADA": 8939,
"CST_ENTRADA": 8938,
"CFOP": 8941,
"CST": 8942,
"ALIQUOTA": 8942,
"CEST": 7708,
"SITUACAO_TRIBUTARIA": 8914,
"COD_ENTRADA_COFINS": 1,
"COD_SAIDA_COFINS": 1,
"ALIQ_COFINS": 0,
"COD_ENTRADA_PIS": 0,
"COD_SAIDA_PIS": 0,
"ALIQ_PIS": 0,
"CSOSN": 8939,
"IPI": 1,
"CST_IPI": 0,
"IAT": 8942,
"INCIDENCIA_PISCOFINS": 8942,
"PISCOFINS": 8942,
"IPPT": 8942,
"COD_ORIGEM_MERCADORIA": 6
},
"fiscal_field_distribution": {
"CLASSIFICACAO_FISCAL": {
"distinct": 734,
"top": [
[
"33059000",
1064
],
[
"19053100",
406
],
[
"39241000",
319
],
[
"33051000",
291
],
[
"39249000",
193
],
[
"96190000",
181
],
[
"76151000",
176
],
[
"34011190",
173
]
]
},
"CFOP_ENTRADA": {
"distinct": 35,
"top": [
[
"1102",
6685
],
[
"1403",
1820
],
[
"5102",
140
],
[
"2202",
111
],
[
"2101",
66
],
[
"2402",
23
],
[
"2403",
22
],
[
"2102",
18
]
]
},
"CST_ENTRADA": {
"distinct": 28,
"top": [
[
"020",
6588
],
[
"060",
1766
],
[
"000",
135
],
[
"010",
122
],
[
"520",
102
],
[
"040",
39
],
[
"560",
39
],
[
"110",
36
]
]
},
"CFOP": {
"distinct": 5,
"top": [
[
"5102",
6837
],
[
"5405",
2102
],
[
null,
1
],
[
"5411",
1
],
[
"5403",
1
]
]
},
"CST": {
"distinct": 5,
"top": [
[
"040",
6791
],
[
"060",
2104
],
[
"000",
44
],
[
"051",
2
],
[
"40",
1
]
]
},
"ALIQUOTA": {
"distinct": 4,
"top": [
[
"20.5",
8935
],
[
"0",
5
],
[
"17",
1
],
[
"20",
1
]
]
},
"CEST": {
"distinct": 382,
"top": [
[
null,
1126
],
[
"2002000",
796
],
[
"2806100",
534
],
[
"1705300",
404
],
[
"2806300",
262
],
[
"1400600",
247
],
[
"2001700",
225
],
[
"1400100",
201
]
]
},
"SITUACAO_TRIBUTARIA": {
"distinct": 2,
"top": [
[
"T",
8914
],
[
null,
28
]
]
},
"COD_ENTRADA_COFINS": {
"distinct": 2,
"top": [
[
null,
8941
],
[
"000",
1
]
]
},
"COD_SAIDA_COFINS": {
"distinct": 2,
"top": [
[
null,
8941
],
[
"060",
1
]
]
},
"ALIQ_COFINS": {
"distinct": 1,
"top": [
[
null,
8942
]
]
},
"COD_ENTRADA_PIS": {
"distinct": 1,
"top": [
[
null,
8942
]
]
},
"COD_SAIDA_PIS": {
"distinct": 1,
"top": [
[
null,
8942
]
]
},
"ALIQ_PIS": {
"distinct": 1,
"top": [
[
null,
8942
]
]
},
"CSOSN": {
"distinct": 5,
"top": [
[
"102",
6786
],
[
"500",
2097
],
[
"101",
56
],
[
null,
2
],
[
"",
1
]
]
},
"IPI": {
"distinct": 2,
"top": [
[
null,
8941
],
[
"0.0",
1
]
]
},
"CST_IPI": {
"distinct": 1,
"top": [
[
null,
8942
]
]
},
"IAT": {
"distinct": 1,
"top": [
[
"A",
8942
]
]
},
"INCIDENCIA_PISCOFINS": {
"distinct": 1,
"top": [
[
"NENHUMA",
8942
]
]
},
"PISCOFINS": {
"distinct": 1,
"top": [
[
"N",
8942
]
]
},
"IPPT": {
"distinct": 1,
"top": [
[
"T",
8942
]
]
},
"COD_ORIGEM_MERCADORIA": {
"distinct": 4,
"top": [
[
null,
8936
],
[
"1",
3
],
[
"0",
2
],
[
"2",
1
]
]
}
},
"kitchen_products": 0,
"vehicle_products": 0,
"grade_tables": {},
"segment_inferred": {
"segment": "RETAIL_MARKET",
"score": {
"RESTAURANT": 0,
"AUTO_REPAIR": 0,
"APPAREL": 0,
"RETAIL_MARKET": 1,
"CONSTRUCTION": 0
},
"evidence": [
"company name in C000004 contains MERCADO (weak, name is data, not the file name)"
],
"signals": {
"restaurant_tables_rows": 1,
"kitchen_products": 0,
"recipes": 0,
"service_orders": 0,
"vehicle_products": 0,
"grade_items": 0,
"nfce_items": 121266
},
"note": "inferred from table population, not from the file name"
},
"type_variations_vs_reference": {
"CEST": {
"reference": [
37,
7,
0
],
"this": [
37,
10,
0
]
}
},
"schema_class": "COMPATIBLE_WITH_VARIATIONS"
}
+79
View File
@@ -0,0 +1,79 @@
{
"file": "UNIAO.FDB",
"company": {
"status": "OK",
"uf": "BA",
"crt": "3",
"error": null
},
"TOTAL_PRODUCTS": 8942,
"metrics": {
"NCM_VALID": 8851,
"IPI_SOURCE_BLANK": 3150,
"CFOP_RESOLVED": 5944,
"ST_UNKNOWN": 6444,
"ST_WITHHOLDING_UNKNOWN": 8942,
"PRODUCT_ROLE_KNOWN": 8922,
"ROLE_RESALE": 8919,
"CSOSN_CONTEXT_REQUIRED": 8942,
"IPI_NUMERIC": 2469,
"IPI_CHANGE_REQUIRED": 2469,
"IPI_WRITE_ELIGIBLE": 2469,
"IPI_AMBIGUOUS": 2983,
"IPI_NON_NUMERIC": 249,
"CFOP_CONTEXT_REQUIRED": 2998,
"ST_CANDIDATE": 1706,
"ST_NOT_APPLICABLE": 495,
"NCM_INVALID": 88,
"IPI_NO_MATCH": 88,
"ST_CONFIRMED": 297,
"PRODUCT_ROLE_UNKNOWN": 20,
"ROLE_UNKNOWN": 20,
"CEST_CANDIDATES": 42,
"CEST_CONFIRMED": 4,
"ROLE_INPUT": 3,
"NCM_LEGACY": 3
},
"quality": {
"ncm_valid_share": 0.9898,
"cest_filled": 7708,
"csosn_filled": 8939,
"cfop_filled": 8941,
"ipi_filled": 1,
"cfop_distinct": 5,
"cfop_top": [
[
"5102",
6837
],
[
"5405",
2102
],
[
null,
1
],
[
"5403",
1
],
[
"5411",
1
]
],
"situacao_tributaria": {
"T": 8914,
"null": 28
},
"purchase_items_C000088": 0,
"products_with_purchase_evidence": 0,
"recipes": 0,
"composed_products": 0
},
"guards_applied": {
"st_dataset_ba_only": false,
"csosn_requires_crt1": true
}
}