sped-br / python-sped

Biblioteca para geração dos arquivos do Sistema Público de Escrituração Digital (SPED) para Python.
MIT License
47 stars 56 forks source link

aderência com as especificaçoes do SPED de 2018 #17

Open rvalyi opened 6 years ago

rvalyi commented 6 years ago
***** GENERATING CODE FOR  ecd
registers not found in pdf: []
registers not found in python-sped: ['K310', 'J935', 'K315', 'K300', 'K990', '0035', 'I053', 'J210', 'K210', 'K115', 'J215', 'K200', 'J200', 'I157', 'J801', 'I151', 'K030', 'K110', 'K100', 'K001']

0000
     missing in pdf: ['NIRE_SUBST']
     missing in python-sped: ['IND_ESC_CONS']

I020
     missing in pdf: ['DESCRICAO']
     missing in python-sped: ['IND_DC_INI_MF', 'VL_CTA_MF', 'VAL_CRED_MF', 'VL_LCTO_MF', 'VL_DEB_MF', 'VL_CRED_MF', 'DESCRI\xc3\x87\xc3\x83O', 'VL_SLD_INI_MF', 'VAL_DEB_MF', 'VL_SLD_FIN_MF', 'IND_DC_FIN_MF', 'VL_DC_MF', 'IND_DC_MF']

I051
     missing in pdf: ['COD_ENT_REF']
     missing in python-sped: ['COD_PLAN_REF']

I155
     missing in python-sped: ['IND_DC_INI_MF', 'VL_CRED_MF', 'VL_DEB_MF', 'IND_DC_FIN_MF', 'VL_SLD_FIN_MF', 'VL_SLD_INI_MF']

I200
     missing in python-sped: ['VL_LCTO_MF']

I250
     missing in python-sped: ['VL_DC_MF', 'IND_DC_MF']

I310
     missing in python-sped: ['VAL_CRED_MF', 'VAL_DEB_MF']

I355
     missing in python-sped: ['IND_DC_MF', 'VL_CTA_MF']

I510
     missing in pdf: ['DEC_CAMPO', 'TIPO_CAMPO', 'COL_CAMPO', 'DESC_CAMPO', 'NM_CAMPO', 'TAM_CAMPO']
     missing in python-sped: ['IND_DC_INI_MF', 'EST\xc3\x81GIOS', 'VL_CTA_MF', 'SUBCONTA MAIS VALIA', 'DESCR_ITEM', 'IND_SLD_SCNT_INI', 'EXTERIOR', 'SLD_SCNT_INI', 'IDENT_ITEM', 'CRED_SCNT', 'ABERTURA DO BLOCO 9', 'DEB_SCNT', 'COD_CCUS', 'SLD_ITEM_FIN', 'VL_LCTO_MF', 'VL_DEB_MF', 'IND_SLD_ITEM_INI', 'IND_SLD_ITEM_FIN', 'VL_DC_MF', 'QTD', 'VL_SLD_INI_MF', 'DE CAPITAL', 'IDENTIFICA\xc3\x87\xc3\x83O DAS SCP', 'VLR_LCTO', 'ATIVO/PASSIVO', 'IND_VLR_LCTO', 'NR_LCTO', 'IND_REAL_ITEM', 'ACUMULADA', 'ENCERRAMENTO DO BLOCO 0', 'COD_SUB_CNT', 'VL_CRED_MF', 'SUBCONTA AVJ REFLEXO', 'SLD_SCNT_FIN', 'ENCERRAMENTO DO BLOCO 9', 'IND_DC_FIN_MF', 'VAL_DEB_MF', 'DATA_LCTO', 'DEPRECIA\xc3\x87\xc3\x83O ACUMULADA', 'IND_SLD_SCNT_FIN', 'COD_PATR_ITEM', 'NAT_SUB_CNT', 'REAL_ITEM', 'IND_ADOC_INI', 'IND_DC_MF', 'VAL_CRED_MF', 'VALIA ANTERIOR \xe2\x80\x93 EST\xc3\x81GIOS', 'DATA_RECT_INI', 'SLD_ITEM_INI', 'VL_SLD_FIN_MF', 'CNPJ_INVTD', 'AO ATIVO', 'AMORTIZA\xc3\x87\xc3\x83O ACUMULADA', 'ABERTURA DO BLOCO 0', 'ANTERIOR \xe2\x80\x93 EST\xc3\x81GIOS']

I550
     missing in pdf: ['RZ_CONT']

I555
     missing in pdf: ['RZ_CONT_TOT']

J100
     missing in python-sped: ['NOTA_EXP_REF']

J150
     missing in python-sped: ['NOTA_EXP_REF']

J800
     missing in python-sped: ['DESC_RTF', 'TIPO_DOC', 'HASH_RTF']

J930
     missing in pdf: ['IDENT_CPF']
     missing in python-sped: ['IDENT_CPF_CNPJ', 'IND_RESP_LEGAL']

 102 field errors out of 164 fields (62.1951219512 percent)

***** GENERATING CODE FOR  ecf
registers not found in pdf: ['Y665']
registers not found in python-sped: ['V010', 'W300', '0021', 'W250', 'Y720', 'V001', 'W200', 'V990', 'V100', 'W100', 'W001', 'W990', 'V020', 'V030']

0010
     missing in pdf: ['OPT_EXT_RTT', 'DIF_FCONT']
     missing in python-sped: ['IND_REC_RECEITA']

0020
     missing in pdf: ['IND_E_COM_TI']
     missing in python-sped: ['IND_ REC_EXT', 'IND_DEREX', 'IND_E-COM_TI', 'IND_PAIS_A_PAIS']

C050
     missing in pdf: ['NIVEL']
     missing in python-sped: ['N\xc3\x8dVEL']

E020
     missing in pdf: ['COD_LAN_ORIG']

J050
     missing in python-sped: ['N\xc3\x8dVEL']

J053
     missing in python-sped: ['EXAUST\xc3\x83O ACUMULADA', 'SUBCONTA MENOS VALIA', 'EST\xc3\x81GIOS', 'DEPRECIA\xc3\x87\xc3\x83O ACUMULADA', 'AMORTIZA\xc3\x87\xc3\x83O ACUMULADA', 'ATIVO/PASSIVO', 'SUBCONTA GOODWILL']

L100
     missing in pdf: ['IND_VAL_CTA_REF_FIN']

L300
     missing in pdf: ['IND_VALOR']

M010
     missing in pdf: ['TRIBUTO', 'IND_VL_SALDO_INI']
     missing in python-sped: ['COD_TRIBUTO']

M310
     missing in pdf: ['COD_CCUS']

M360
     missing in pdf: ['COD_CCUS']

M410
     missing in pdf: ['IND_VAL_LAN_LALB_PB']

M500
     missing in pdf: ['IND_SD_INI_LAL', 'IND_VL_LCTO_PARTE_A', 'IND_ VL_LCTO_PARTEB']

N615
     missing in pdf: ['VL_LIQ_INCEN_FINOR', 'PER_INCEN_FINAM', 'VL_LIQ_INCEN_FINAM']
     missing in python-sped: ['PER_INCEN_ FINAM', 'VL_LIQ_INCEN_ FINOR', 'VL_LIQ_INCEN_ FINAM']

P100
     missing in pdf: ['IND_VAL_CTA_REF_FIN']

P150
     missing in pdf: ['IND_VALOR']

U100
     missing in pdf: ['IND_VAL_CTA_REF_FIN']

U150
     missing in pdf: ['IND_VALOR']

X340
     missing in pdf: ['IND_REPETRO']
     missing in python-sped: ['CNPJ', 'TIP_MOEDA', 'IND_ISEN_PETR']

X350
     missing in pdf: ['IMP_DEV_ARB', 'LUC_ARB_PER_APUR', 'LUC_ARB_ANT_IMP']

X351
     missing in pdf: ['IMP_PAG', 'RES_REPRETO_PER', 'RES_REPRETO_PER_REAL', 'IMP_PAG_REAL']
     missing in python-sped: ['IMP_RET_EXT_REAL', 'IMP_LUCR', 'RES_ISEN_PETR_PER', 'IMP_RET_BR', 'RES_ISEN_PETR_PER_REAL', 'IMP_LUCR_REAL', 'IMP_RET_EXT']

X356
     missing in python-sped: ['PERC_PART', 'PAT_LIQUIDO', 'ATIVO_TOTAL']

Y570
     missing in python-sped: ['IRRF - OUTROS RENDIMENTOS', 'IRRF - MULTAS E VANTAGENS']

Y600
     missing in pdf: ['IND_QUALIF_SOCIO']
     missing in python-sped: ['IND_QUALIF']

Y620
     missing in python-sped: ['DT_EVENTO', 'IND_RELAC']

Y665
     missing in pdf: ['COD_CCUS', 'DESC_CTA', 'IND_VL_SALDO_FIS', 'COD_SUBCONT', 'VL_SALDO_FIS', 'DESC_SUB', 'VL_SALDO_SOC', 'IND_VL_SALDO_SOC', 'MET_CONTR', 'DIF_SALDOS', 'COD_CCUS_SUB', 'IND_DIF_SALDOS', 'COD_CTA']

Y671
     missing in pdf: ['VL_DIF_IC_VC']

Y672
     missing in pdf: ['IND_REG_APUR']

Y800
     missing in python-sped: ['HASH', 'TIPO_DOC', 'DESCRICAO']

9100
     missing in pdf: ['']
     missing in python-sped: ['NOM_REGRA']

 87 field errors out of 711 fields (12.2362869198 percent)

***** GENERATING CODE FOR  efd_icms_ipi
registers not found in pdf: []
registers not found in python-sped: ['D101', 'E531', 'K275', 'K215', 'K210', '0210', 'C465', 'K280', 'E300', 'K260', 'E311', 'E310', 'K265', 'C101', 'K270']

0005
     missing in pdf: ['EMAIL']

0015
     missing in pdf: ['IE_ST']

0190
     missing in pdf: ['DESCR']

0200
     missing in pdf: ['TIPO_ITEM']

0460
     missing in pdf: ['TXT']

0500
     missing in pdf: ['COD_NAT_CC', 'NOME_CTA']
     missing in python-sped: ['COD_ NAT_CC']

0600
     missing in pdf: ['DT_ALT', 'COD_CCUS', 'CCUS']

C100
     missing in pdf: ['VL_COFINS_ST']

C112
     missing in pdf: ['DT_PGTO']

C113
     missing in pdf: ['NUM_DOC']

C120
     missing in pdf: ['COFINS_IMP', 'NUM_ACDRAW', 'NUM_DOC IMP']
     missing in python-sped: ['COFINS IMP', 'NUM_DOC__IMP']

C130
     missing in pdf: ['VL_ PREV']

C140
     missing in pdf: ['VL_TIT']

C141
     missing in pdf: ['VL_PARC']

C160
     missing in pdf: ['UF_ID']

C165
     missing in pdf: ['UF_ID']

C170
     missing in pdf: ['COD_CTA']

C171
     missing in pdf: ['QTDE']

C172
     missing in pdf: ['VL_ISSQN']

C176
     missing in python-sped: ['ALIQ_ST_ULT_E', 'VL_UNIT_LIMITE_', 'COD_MOT_RES', 'SER_NFE_RET', 'COD_PART_NFE_RET', 'NUM_ITEM_ULT_', 'VL_UNIT_ICMS_U', 'COD_RESP_RET', 'NUM_NFE_RET', 'VL_UNIT_RES', 'CHAVE_NFE_ULT', 'ALIQ_ICMS_ULT_', 'VL_UNIT_BC_ICM', 'CHAVE_NFE_RET', 'ITEM_NFE_RET', 'COD_DA']

C179
     missing in pdf: ['ICMS_RET', 'BC_ST_ORIG_DEST', 'ICMS_ST_REP', 'BC_RET', 'ICMS_ST_COMPL']

C300
     missing in pdf: ['COD_CTA']

C310
     missing in pdf: ['NUM_DOC_CANC']

C321
     missing in pdf: ['VL_COFINS']

C500
     missing in pdf: ['TP_LIGACAO', 'COD_GRUPO_TENSAO']
     missing in python-sped: ['TP LIGACAO']

C610
     missing in pdf: ['COD_CTA']

C700
     missing in python-sped: ['CHV_COD_DIG']

C850
     missing in pdf: ['CST_ICMS', 'COD_OBS', 'ALIQ_ICMS', 'CFOP', 'VL_OPR', 'VL_BC_ICMS', 'VL_ICMS']

D100
     missing in pdf: ['TP_CT-e']
     missing in python-sped: ['COD_MUN_DE', 'COD_MUN_OR']

D160
     missing in pdf: ['COD_MUN_DEST']

D161
     missing in pdf: ['COD_MUN_ENTG']

D355
     missing in pdf: ['VL_BRT']

D360
     missing in python-sped: ['VLR_ACUM_TOT', 'COD_TOT_PAR', 'NR_TOT']

D365
     missing in pdf: ['VLR_ACUM_TOT', 'DESCR_NR_TOT', 'COD_TOT_PAR', 'NR_TOT']

D370
     missing in pdf: ['VL_ICMS']

D410
     missing in pdf: ['VL_ICMS']

D411
     missing in pdf: ['NUM_DOC_CANC']

D500
     missing in pdf: ['TP_ASSINANTE']

D510
     missing in pdf: ['VL_ICMS_ST', 'VL_BC_ICMS_ST']
     missing in python-sped: ['VL_BC_ICMS_U', 'VL_ICMS_UF']

D530
     missing in pdf: ['TERMINAL']

D590
     missing in pdf: ['COD_OBS', 'VL_ICMS_ST', 'VL_BC_ICMS_ST']
     missing in python-sped: ['VL_BC_ICMS_UF', 'VL_ICMS_UF']

D600
     missing in pdf: ['COD_MOD', 'VL_SERV_N T', 'VL_COFINS']
     missing in python-sped: ['VL_SERV_NT']

D610
     missing in pdf: ['VL_ICMS_ST', 'VL_BC_ICMS _ST']
     missing in python-sped: ['VL_ICMS_UF']

D690
     missing in pdf: ['VL_ICMS_ST', 'VL_BC_ICMS _ST']
     missing in python-sped: ['_UF']

D696
     missing in pdf: ['COD_OBS', 'VL_ICMS_ST', 'VL_BC_ICMS', 'VL_BC_ICMS_ST']
     missing in python-sped: ['VL_BC_ICMS_UF', 'VL_ICMS_UF']

E115
     missing in pdf: ['DESCR_COMPL_AJ']

E116
     missing in python-sped: ['MES_REF*']

E210
     missing in pdf: ['DEB_ESP_ST', 'VL_SLD_CRED_ST_TRAN SPORTAR']
     missing in python-sped: ['VL_SLD_CRED_ST_TRANSPORTAR']

E230
     missing in pdf: ['TXT_COMPL']

E250
     missing in pdf: ['MES_REF']
     missing in python-sped: ['MES_REF*']

G110
     missing in pdf: ['SOM_ICMS_OC']

G126
     missing in pdf: ['VL_PARC_APRO P']
     missing in python-sped: ['VL_PARC_APROP']

G140
     missing in pdf: ['COD_ITEM']

H010
     missing in python-sped: ['VL_ITEM_IR']

K220
     missing in pdf: ['QTD', 'DT_MOV']
     missing in python-sped: ['QTD_DEST', 'QTD_ORI']

K250
     missing in pdf: ['QTD']

K255
     missing in pdf: ['COD_INS_SUBST']

1010
     missing in pdf: ['IND_AER']

1100
     missing in pdf: ['TP_CHC']

1105
     missing in pdf: ['COD_ITEM']

1110
     missing in pdf: ['UNID']

1200
     missing in pdf: ['CR\xc3\x89D_APR']
     missing in python-sped: ['CRED_APR']

1210
     missing in python-sped: ['VL_CRED_U TIL']

1320
     missing in pdf: ['VOL_VENDAS']

1370
     missing in pdf: ['NUM_TANQUE']

1390
     missing in pdf: ['COD_PROD']

1391
     missing in pdf: ['OBS', 'PROD_ALC_MEL']

1400
     missing in pdf: ['COD_ITEM', 'VALOR']
     missing in python-sped: ['COD_ITEM_IPM']

1510
     missing in pdf: ['COD_CTA']

1920
     missing in pdf: ['DEB_ESP_OA']

1921
     missing in python-sped: ['DESCR_COMPL_AJ']

1926
     missing in pdf: ['MES_REF']
     missing in python-sped: ['MES_REF*']

 145 field errors out of 1312 fields (11.0518292683 percent)

***** GENERATING CODE FOR  efd_pis_cofins
registers not found in pdf: []
registers not found in python-sped: []

0111
     missing in pdf: ['REC_BRU_NCUM_TRIB_MI', 'REC_BRU_NCUM_EXP']
     missing in python-sped: ['REC_BRU_NCUM_TRIB']

0120
     missing in pdf: ['MES_DISPENSA']
     missing in python-sped: ['MES_REFER']

0145
     missing in pdf: ['VL_REC_DEMAIS_ATIV']
     missing in python-sped: ['VL_REC_DEMAI']

C100
     missing in python-sped: ['IND_PGTO']

C396
     missing in pdf: ['NAT_BC_CRED']

C810
     missing in pdf: ['VL_BC_COFINS']

C820
     missing in pdf: ['QUANT_BC_COFINS', 'CST_PIS', 'COD_CTA']

C870
     missing in python-sped: ['VL_DESC']

C880
     missing in pdf: ['CST_PIS', 'COD_CTA']
     missing in python-sped: ['VL_DESC']

D100
     missing in pdf: ['TP_CT-e']

D111
     missing in python-sped: ['DT_REF', 'SUB', 'VL_DESC', 'NUM_DOC_INI', 'CFOP', 'NUM_DOC_FIN', 'VL_DOC']

D200
     missing in pdf: ['COD_MOD', 'DT_REF', 'SER', 'VL_DESC', 'NUM_DOC_INI', 'CFOP', 'SUB', 'COD_SIT', 'NUM_DOC_FIN', 'VL_DOC']

D201
     missing in pdf: ['CST_PIS', 'COD_CTA']

D300
     missing in pdf: ['VL_BC_COFINS']
     missing in python-sped: ['VL_BC_COFIN']

F120
     missing in pdf: ['PARC_OPER_NAO_BC_CRED']
     missing in python-sped: ['PARC_OPER_NAO_B']

F130
     missing in pdf: ['PARC_OPER_NAO_BC_CRED']
     missing in python-sped: ['PARC_OPER_NAO_B']

F200
     missing in pdf: ['DESC_UNID_IMOB', 'CPF_CNPJ_ADQU']
     missing in python-sped: ['CPF_CNPJ_ADQ', 'DESC_UNID_IM']

F205
     missing in pdf: ['VL_EXC_BC_CUS_INC_ACUM', 'VL_CRED_COFINS_DESC_FUT', 'VL_CRED_PIS_ACUM', 'VL_CRED_COFINS_DESC', 'VL_CRED_COFINS_ACUM', 'VL_CRED_PIS_DESC_FUT', 'VL_CUS_INC_PER_ESC']
     missing in python-sped: ['VL_EXC_BC_C', 'VL_CUS_INC_P', 'VL_CRED_COFI', 'VL_CRED_PIS_']

F210
     missing in pdf: ['VL_CUS_ORC_AJU']
     missing in python-sped: ['VL_CUS_ORC_']

F500
     missing in pdf: ['COD_MOD', 'VL_DESC_COFINS', 'INFO_COMPL', 'CFOP', 'CST_PIS', 'VL_REC_CAIXA', 'COD_CTA']

F510
     missing in pdf: ['QUANT_BC_PIS', 'VL_DESC_COFINS', 'ALIQ_COFINS_QUANT', 'QUANT_BC_COFINS', 'ALIQ_PIS_QUANT', 'VL_REC_CAIXA']

F550
     missing in pdf: ['COD_MOD', 'VL_DESC_COFINS', 'VL_COFINS', 'ALIQ_PIS', 'CST_COFINS', 'INFO_COMPL', 'CFOP', 'ALIQ_COFINS', 'VL_DESC_PIS', 'VL_REC_COMP', 'VL_PIS', 'VL_BC_COFINS', 'CST_PIS', 'VL_BC_PIS', 'COD_CTA']

F560
     missing in pdf: ['QUANT_BC_PIS', 'VL_DESC_COFINS', 'ALIQ_COFINS_QUANT', 'QUANT_BC_COFINS', 'ALIQ_PIS_QUANT', 'VL_REC_COMP']

I010
     missing in pdf: ['INFO_COMPL', 'CNPJ', 'IND_ATIV']

P010
     missing in pdf: ['CNPJ']

P100
     missing in pdf: ['INFO_COMPL', 'VL_CONT_APU']

1100
     missing in pdf: ['VL_CRED_PER_PA_ANT', 'VL_CRED_DCOMP_EFD', 'SD_CRED_DISP_EFD', 'VL_CRED_DCOMP_PA_ANT', 'VL_CRED_DESC_EFD', 'VL_CRED_PER_EFD', 'VL_CRED_TRANS']
     missing in python-sped: ['MP_PA_ANT']

1101
     missing in pdf: ['DESC_COMPL']
     missing in python-sped: ['DESC_COMP']

1300
     missing in pdf: ['VL_RET_DCOMP']

1500
     missing in pdf: ['VL_CRED_PER_PA_ANT', 'VL_CRED_DESC_EFD', 'VL_CRED_DCOMP_PA_ANT', 'VL_CRED_DCOMP_EFD', 'SD_CRED_DISP_EFD']
     missing in python-sped: ['PA_ANT', 'NPJ']

1501
     missing in pdf: ['COD_MOD', 'CNPJ', 'NAT_BC_CRED', 'VL_COFINS', 'SER', 'CHV_NFE', 'COD_ITEM', 'CST_COFINS', 'SUB_SER', 'IND_ORIG_CRED', 'DESC_COMPL', 'NUM_DOC', 'PER_ESCRIT', 'COD_CCUS', 'CFOP', 'COD_PART', 'ALIQ_COFINS', 'DT_OPER', 'VL_OPER', 'VL_BC_COFINS', 'COD_CTA']

1610
     missing in python-sped: ['COD_CRED', 'PER_APU_CRED', 'VL_CRED', 'ORIG_CRED']

1700
     missing in pdf: ['VL_RET_DCOMP']

1800
     missing in pdf: ['COD_REC', 'ALIQ_RET']

1809
     missing in pdf: ['IND_PROC', 'NUM_PROC']

 148 field errors out of 1404 fields (10.5413105413 percent)
mileo commented 6 years ago

Seria interessante colocar isso no travis do projeto.