Tabela T95

Ret Contrib Prev – Serv Tomad
31camposNome físicoT95010(empresa 01)

Campos da tabela T95

31 campos no dicionário de dados do TOTVS Protheus.

31
CampoDescrição
T95_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
T95_ID
Caractere (C)(36)
ID
Máscara:
@!
Contexto:
Real
T95_VERSAO
Caractere (C)(14)
Id Ver Reg
Máscara:
@!
Contexto:
Real
T95_PERAPU
Caractere (C)(6)
Per Apuracao
Máscara:
@R 99-9999
Contexto:
Real
T95_IDESTA
Caractere (C)(6)
Id Estab
Máscara:
@!
Contexto:
Real
Consulta F3:
C1E
Validação:
XFUNVldCmp("C1E",5)
T95_DESTAB
Caractere (C)(220)
Desc Estab
Máscara:
@!
Contexto:
Real
T95_TPNUOB
Caractere (C)(16)
Insc Obra
Máscara:
@!
Contexto:
Real
Consulta F3:
T9CA
Validação:
XFUNVldCmp("T9C",3)
T95_DOBRA
Caractere (C)(30)
Desc Obra
Máscara:
@!
Contexto:
Real
T95_IDOBRA
Caractere (C)(36)
Id Obra
Máscara:
@!
Contexto:
Real
T95_TPINSC
Caractere (C)(1)
Tp Inscricao
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 14")
2 valores possíveis
  • 1CNPJ
  • 4CNO
T95_NRINSC
Caractere (C)(14)
Nr Insc Est
Máscara:
@!
Contexto:
Real
Validação:
Iif( M->T95_TPINSC $ "1|2", CGC( M->T95_NRINSC ), .T. )
T95_INDOBR
Caractere (C)(1)
Ind Obra
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 012")
3 valores possíveis
  • 0Nao e obra de const. civil ou nao esta sujeita a matric.
  • 1Obra Const. Civil - Emp. Total
  • 2Obra Const. Civil - Emp. Parcial
T95_CODPAR
Caractere (C)(60)
Cod Part
Máscara:
@!
Contexto:
Real
Consulta F3:
C1HA
T95_DPARTI
Caractere (C)(220)
Desc Part
Máscara:
@!
Contexto:
Real
T95_IDPART
Caractere (C)(36)
Id Particip
Máscara:
@!
Contexto:
Real
T95_CNPJPR
Caractere (C)(14)
CNPJ Prest
Máscara:
@R 99.999.999/9999-99
Contexto:
Real
Validação:
xFunVldPJF(,2,.F.)
T95_VLRBRU
Numérico (N)(14,2)
Vlr Bruto NF
Máscara:
@E 99,999,999,999.99
Contexto:
Real
T95_VLRBRE
Numérico (N)(14,2)
Vlr Bc Ret
Máscara:
@E 99,999,999,999.99
Contexto:
Real
T95_VLRPRI
Numérico (N)(14,2)
Vlr NF Contr
Máscara:
@E 99,999,999,999.99
Contexto:
Real
T95_VLRADI
Numérico (N)(14,2)
Vlr Adic NF
Máscara:
@E 99,999,999,999.99
Contexto:
Real
T95_VLRNPR
Numérico (N)(14,2)
Vlr Ret Prin
Máscara:
@E 99,999,999,999.99
Contexto:
Real
T95_VLRNAD
Numérico (N)(14,2)
Vlr Ad N Con
Máscara:
@E 99,999,999,999.99
Contexto:
Real
T95_INDCPR
Caractere (C)(1)
Ind CPRB
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 01")
2 valores possíveis
  • 0Nao e contribuinte da CPRB - Retencao 11%
  • 1Contribuinte da CPRB - Retencao 3,5%
T95_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
T95_STATUS
Caractere (C)(1)
Status Reg
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 0123467")
7 valores possíveis
  • 0Reg Valido
  • 1Reg Invalido
  • 2Reg Trans
  • 3Reg Trans Inconsistencia
  • 4Reg Trans Sucesso
  • 6Exclusao Trans
  • 7Exclusao Trans Sucesso
T95_PROTUL
Caractere (C)(52)
Recibo
Máscara:
@!
Contexto:
Real
T95_PROTPN
Caractere (C)(52)
Recibo Ant
Máscara:
@!
Contexto:
Real
T95_EVENTO
Caractere (C)(1)
Id Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAE")
3 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
T95_ATIVO
Caractere (C)(1)
Reg Ativo
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
T95_PROCID
Caractere (C)(6)
Proc ID
Máscara:
@!
Contexto:
Real
T95_XMLID
Caractere (C)(36)
Id do XML.
Contexto:
Real

SELECT de exemplo da tabela T95

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  T95.T95_FILIAL,
  T95.T95_ID,
  T95.T95_VERSAO,
  T95.T95_PERAPU,
  T95.T95_IDESTA,
  T95.T95_DESTAB,
  T95.T95_TPNUOB,
  T95.T95_DOBRA
FROM T95010 T95
WHERE T95.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.