Tabela CMN - Ret Contrib Prev - Serv Prest
Rotina (SysObj): TAFA478
Chave Unica: CMN_FILIAL + CMN_ID + CMN_VERSAO
Sumario:
Campos
Campo
| Titulo
| Descricao
| Tipo
| Contexto
| Tamanho
|
CMN_FILIAL |
Filial |
Filial |
C |
Real |
2 |
CMN_ID |
ID |
Identificador do registro |
C |
Real |
36 |
CMN_VERSAO |
Id. Ver. Reg |
Id da versao do Registro |
C |
Real |
14 |
CMN_NOMEVE |
Nome Evento |
Nome do Evento |
C |
Real |
5 |
CMN_INDAPU |
Ind.Per.Apur |
Indic.Periodo Apuracao |
C |
Real |
1 |
CMN_PERAPU |
Per Apuracao |
Periodo da Apuracao |
C |
Real |
6 |
CMN_VERANT |
Ver Ant Reg |
Versao anterior registro |
C |
Real |
14 |
CMN_STATUS |
Status Reg. |
Status do registro |
C |
Real |
1 |
CMN_PROTUL |
Recibo |
Recibo da Transmissao |
C |
Real |
52 |
CMN_PROTPN |
Recibo Ant |
Recibo Trans Anterior |
C |
Real |
52 |
CMN_EVENTO |
Id. Evento |
Identificacao do Evento |
C |
Real |
1 |
CMN_ATIVO |
Reg Ativo |
Registro Ativo |
C |
Real |
1 |
CMN_IDESTA |
Id Estab |
Id do estabelecimento |
C |
Real |
6 |
CMN_DESTAB |
Desc Estab |
Descricao do Estab. |
C |
Real |
220 |
CMN_TPNUOB |
Insc Obra |
Tipo e Num Insc. da Obra |
C |
Real |
16 |
CMN_DOBRA |
Desc Obra |
Descricao da Obra |
C |
Real |
30 |
CMN_IDOBRA |
Id Obra |
Id da Obra |
C |
Real |
36 |
CMN_TPINSC |
Tp Inscricao |
Tipo de Inscricao |
C |
Real |
1 |
CMN_NRINSC |
Nr Insc Est |
Num. Inscricao do Contrib |
C |
Real |
14 |
CMN_TPINST |
Tp Insc Tom |
Tp Inscricao do Tomador |
C |
Real |
1 |
CMN_NRINST |
Nr Insc Tom |
Num. Inscricao do Tomador |
C |
Real |
14 |
CMN_INDOBR |
Ind Obra |
Indicativo de Prest. Obra |
C |
Real |
1 |
CMN_CODPAR |
Cod Part |
Codigo do Participante |
C |
Real |
60 |
CMN_DPARTI |
Desc Part |
Descricao do Participante |
C |
Real |
220 |
CMN_IDPART |
Id Particip |
Id do participante |
C |
Real |
36 |
CMN_CNPJPR |
CNPJ Prest |
CNPJ do prestador servico |
C |
Real |
14 |
CMN_VLRBRU |
Vlr Bruto NF |
Valor Bruto da NF |
N |
Real |
14, 2 |
CMN_VLRBRE |
Vlr Bc Ret |
Valor BC da Ret. Contrib. |
N |
Real |
14, 2 |
CMN_VLRPRI |
Vlr NF Contr |
Valor Ret NF Contratante |
N |
Real |
14, 2 |
CMN_VLRADI |
Vlr Adic NF |
Valor Adicional da NF |
N |
Real |
14, 2 |
CMN_VLRNPR |
Vlr Ret Prin |
Valor de Ret. Principal |
N |
Real |
14, 2 |
CMN_VLRNAD |
Vlr Ad N Con |
Valor Ret Nao Contratante |
N |
Real |
14, 2 |
CMN_PROCID |
Proc ID |
ID de Processos. |
C |
Real |
6 |
CMN_XMLID |
Id do XML. |
Id do XML. |
C |
Real |
36 |
Indices
Ordem
| Chave
| Descricao
| Nickname
|
1 |
CMN_FILIAL + CMN_ID + CMN_VERSAO |
ID + Id. Ver. Reg |
|
2 |
CMN_FILIAL + CMN_PERAPU + CMN_TPINSC + CMN_NRINSC + CMN_ATIVO |
Per Apuracao + Tp Inscricao + Nr Insc Est + Reg Ativo |
|
3 |
CMN_FILIAL + CMN_TPINSC + CMN_NRINSC + CMN_ATIVO |
Tp Inscricao + Nr Insc Est + Reg Ativo |
|
4 |
CMN_FILIAL + CMN_NRINSC + CMN_ATIVO |
Nr Insc Est + Reg Ativo |
|
5 |
CMN_FILIAL + CMN_PROTUL + CMN_ATIVO |
Recibo + Reg Ativo |
|
6 |
CMN_FILIAL + CMN_ID + CMN_ATIVO |
ID + Reg Ativo |
|
7 |
CMN_FILIAL + CMN_PERAPU + CMN_TPINSC + CMN_NRINSC + CMN_TPINST + CMN_NRINST + CMN_ATIVO |
Per Apuracao + Tp Inscricao + Nr Insc Est + Tp Insc Tom + Nr Insc Tom |
|
8 |
CMN_FILIAL + CMN_PERAPU + CMN_ATIVO |
Per Apuracao + Reg Ativo |
|
Relacionamentos
Tabela Origem
| Tabela Destino
| Expressao Origem
| Expressao Destino
| Relacionamento
|
C1E (Compl. Estabelecimento) |
CMN (Ret Contrib Prev - Serv Prest) |
C1E_ID |
CMN_IDESTA |
1 para N |
C1E (Compl. Estabelecimento) |
CMN (Ret Contrib Prev - Serv Prest) |
C1E_ID + C1E_ATIVO |
CMN_IDESTA + '1' |
1 para N |
CMN (Ret Contrib Prev - Serv Prest) |
CMO (Estabelecimento) |
CMN_ID + CMN_VERSAO |
CMO_ID + CMO_VERSAO |
1 para N |
CMN (Ret Contrib Prev - Serv Prest) |
CRO (Detalhamento de Nfs) |
CMN_ID + CMN_VERSAO |
CRO_ID + CRO_VERSAO |
1 para N |
CMN (Ret Contrib Prev - Serv Prest) |
T9Z (Inf. Processos Relacionados) |
CMN_ID + CMN_VERSAO |
T9Z_ID + T9Z_VERSAO |
1 para N |
CMN (Ret Contrib Prev - Serv Prest) |
V0A (Inf. Processos Relacionados Ad) |
CMN_ID + CMN_VERSAO |
V0A_ID + V0A_VERSAO |
1 para N |
Tabelas do Protheus v4.3 (baseado no P12.1.2210) - 16/10/2022 - 10.278 tabelas e 10.531 parametros