Tabela CMP - Contratante/Prestador

Chave Unica: CMP_FILIAL + CMP_ID + CMP_VERSAO + CMP_INSCES + CMP_INSCCO

Modo: E

Modo Unid.: E

Modo Empr.: E


Sumario:


Campos

Campo Titulo Descricao Tipo Contexto Tamanho
CMP_FILIAL Filial Filial C Real 2
CMP_ID ID Identificador do registro C Real 36
CMP_VERSAO Id. Ver. Reg Id da versao do registro C Real 14
CMP_INSCES Nr. Inscr. Numero Inscricao C Real 14
CMP_TPINSC Tp. Inscr. Tipo Inscricao C Real 1
CMP_INSCCO Nr. Inscr. Numero Inscricao C Real 14
CMP_VLBRUT Val. Bruto Valor Bruto N Real 16, 2
CMP_VLSERV Val. Servico Valor Servicos N Real 16, 2
CMP_BCRETE Bc. Retencao Base de Calculo Retencao N Real 16, 2
CMP_VLRETE Val. Ret. Valor Retencao N Real 16, 2
CMP_VLADIC Val. Adic. Valor Adicional N Real 16, 2
CMP_VLNRET Val. Nao Ret Valor Nao Retido N Real 16, 2
CMP_BCCOOP BC. Coop. Base de Calc. Cooperativa N Real 16, 2

Indices

Ordem Chave Descricao Nickname
1 CMP_FILIAL + CMP_ID + CMP_VERSAO + CMP_INSCES + CMP_INSCCO ID + Id. Ver. Reg + Nr. Inscr. + Nr. Inscr.
2 CMP_FILIAL + CMP_INSCCO Nr. Inscr.

Relacionamentos

Tabela Origem Tabela Destino Expressao Origem Expressao Destino Relacionamento
CMO (Estabelecimento) CMP (Contratante/Prestador) CMO_ID + CMO_VERSAO + CMO_INSCES CMP_ID + CMP_VERSAO + CMP_INSCES 1 para N
CMP (Contratante/Prestador) CMQ (Notas Fiscais) CMP_FILIAL + CMP_ID + CMP_VERSAO + CMP_INSCES + CMP_INSCCO CMQ_FILIAL + CMQ_ID + CMQ_VERSAO + CMQ_INSCES + CMQ_INSCCO 1 para N
CMP (Contratante/Prestador) CMQ (Notas Fiscais) CMP_ID + CMP_VERSAO + CMP_INSCES + CMP_INSCCO CMQ_ID + CMQ_VERSAO + CMQ_INSCES + CMQ_INSCCO 1 para N
Tabelas do Protheus v4.4 (baseado no P12.1.2310) - 17/10/2023 - 10.565 tabelas e 11.511 parametros
Terminal de Informação