Tabela DJT

Base Calc % Comp Fret (Ajuste)
17camposNome físicoDJT010(empresa 01)

Campos da tabela DJT

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

17
CampoDescrição
DJT_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
DJT_CODCLI
Caractere (C)(6)
Cod Cliente
Máscara:
@!
Contexto:
Real
DJT_LOJCLI
Caractere (C)(2)
Loja Cliente
Máscara:
@!
Contexto:
Real
DJT_TABFRE
Caractere (C)(4)
Tab. Fret
Máscara:
@!
Contexto:
Real
DJT_TIPTAB
Caractere (C)(2)
Tipo Tabela
Máscara:
@!
Contexto:
Real
DJT_CDRORI
Caractere (C)(6)
Cod.Reg.Ori.
Máscara:
@!
Contexto:
Real
DJT_CDRDES
Caractere (C)(6)
Cod.Reg.Des.
Máscara:
@!
Contexto:
Real
DJT_SEQTAB
Caractere (C)(2)
Seq.Tab.Fre.
Máscara:
@!
Contexto:
Real
DJT_CODPRO
Caractere (C)(15)
Cod. Prod.
Máscara:
@!
Contexto:
Real
DJT_SERVIC
Caractere (C)(3)
Servico
Máscara:
@!
Contexto:
Real
DJT_CODTRT
Caractere (C)(2)
Cod Comp TRT
Máscara:
@!
Contexto:
Real
DJT_CODPAS
Caractere (C)(2)
Cod. Comp.
Máscara:
@!
Contexto:
Real
DJT_CODNEG
Caractere (C)(2)
Cod Negociac
Máscara:
@!
Contexto:
Real
DJT_DESPAS
Caractere (C)(20)
Componente
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DJT_VLBASE
Numérico (N)(6,2)
% Base Calc
Máscara:
@E 999.99
Contexto:
Real
Validação:
Positivo()
DJT_VLAJUS
Numérico (N)(6,2)
% Ajuste
Máscara:
@E 999.99
Contexto:
Real
Validação:
Positivo() .And. TM011VlDJT()
DJT_VLBAJU
Numérico (N)(6,2)
% Ajustado
Máscara:
@E 999.99
Contexto:
Real

SELECT de exemplo da tabela DJT

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
  DJT.DJT_FILIAL,
  DJT.DJT_CODCLI,
  DJT.DJT_LOJCLI,
  DJT.DJT_TABFRE,
  DJT.DJT_TIPTAB,
  DJT.DJT_CDRORI,
  DJT.DJT_CDRDES,
  DJT.DJT_SEQTAB
FROM DJT010 DJT
WHERE DJT.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.