Tabela TFJ

Orçamento de Serviços
54camposNome físicoTFJ010(empresa 01)

Campos da tabela TFJ

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

54
CampoDescrição
TFJ_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
TFJ_CODIGO
Caractere (C)(11)
Codigo
Máscara:
@!
Contexto:
Real
Validação:
ExistChav("TFJ")
TFJ_PROPOS
Caractere (C)(6)
Num.Proposta
Máscara:
@!
Contexto:
Real
TFJ_PREVIS
Caractere (C)(2)
Rev.Proposta
Máscara:
@!
Contexto:
Real
TFJ_ENTIDA
Caractere (C)(1)
Tp.Entidade
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Cliente
  • 2Prospect
TFJ_CODENT
Caractere (C)(6)
Cod.Entidade
Máscara:
@!
Contexto:
Real
Validação:
If(FwFldGet('TFJ_ENTIDA')=='1',ExistCpo('SA1'),ExistCpo('SUS'))
TFJ_LOJA
Caractere (C)(2)
Lj.Entidade
Máscara:
@!
Contexto:
Real
TFJ_CONDPG
Caractere (C)(3)
Cond.Pagto.
Máscara:
@!
Contexto:
Real
Consulta F3:
SE4
Validação:
ExistCpo("SE4")
TFJ_AGRUP
Caractere (C)(1)
Agrupa?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
TFJ_DESCON
Numérico (N)(5,2)
%Desconto
Máscara:
@E 99.99
Contexto:
Real
Validação:
Positivo()
TFJ_GRPRH
Caractere (C)(15)
Grupo R.H
Máscara:
@!
Contexto:
Real
Consulta F3:
SB1
Validação:
ExistCpo("SB1")
TFJ_DSCRH
Caractere (C)(40)
Dsc.Agrup.RH
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TFJ_TES
Caractere (C)(3)
TES
Máscara:
@!
Contexto:
Real
Consulta F3:
SF4
Validação:
ExistCpo("SF4") .AND. M->TFJ_TES > "500"
TFJ_ITEMRH
Caractere (C)(2)
Item RH
Máscara:
@!
Contexto:
Real
TFJ_GRPMI
Caractere (C)(15)
Grupo M.I.
Máscara:
@!
Contexto:
Real
Consulta F3:
SB1
Validação:
ExistCpo("SB1")
TFJ_DSCMI
Caractere (C)(40)
Dsc.Agrup.MI
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TFJ_TESMI
Caractere (C)(3)
TES
Máscara:
@!
Contexto:
Real
Consulta F3:
SF4
Validação:
ExistCpo("SF4") .And. M->TFJ_TESMI > "500"
TFJ_ITEMMI
Caractere (C)(2)
Item MI
Máscara:
@!
Contexto:
Real
TFJ_GRPMC
Caractere (C)(15)
Grupo M.C.
Máscara:
@!
Contexto:
Real
Consulta F3:
SB1
Validação:
ExistCpo("SB1")
TFJ_DSCMC
Caractere (C)(40)
Dsc.Agrup.MC
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TFJ_TESMC
Caractere (C)(3)
TES
Máscara:
@!
Contexto:
Real
Consulta F3:
SF4
Validação:
ExistCpo("SF4") .And. M->TFJ_TESMC > "500"
TFJ_ITEMMC
Caractere (C)(2)
Item MC
Máscara:
@!
Contexto:
Real
TFJ_GRPLE
Caractere (C)(15)
Grupo L.E.
Máscara:
@!
Contexto:
Real
Consulta F3:
SB1
Validação:
ExistCpo("SB1")
TFJ_DSCLE
Caractere (C)(40)
Dsc.Agrup.LE
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TFJ_TESLE
Caractere (C)(3)
TES
Máscara:
@!
Contexto:
Real
Consulta F3:
SF4
Validação:
ExistCpo("SF4") .And. M->TFJ_TESLE > "500"
TFJ_ITEMLE
Caractere (C)(2)
Item LE
Máscara:
@!
Contexto:
Real
TFJ_TOTRH
Numérico (N)(14,2)
Total RH
Máscara:
@E 99,999,999,999.99
Contexto:
Virtual (não existe no banco)
TFJ_TOTMI
Numérico (N)(14,2)
Total MI
Máscara:
@E 99,999,999,999.99
Contexto:
Virtual (não existe no banco)
TFJ_TOTMC
Numérico (N)(14,2)
Total MC
Máscara:
@E 99,999,999,999.99
Contexto:
Virtual (não existe no banco)
TFJ_TOTLE
Numérico (N)(14,2)
Total LE
Máscara:
@E 99,999,999,999.99
Contexto:
Virtual (não existe no banco)
TFJ_CONTRT
Caractere (C)(15)
Nr. Contrato
Contexto:
Real
TFJ_CONREV
Caractere (C)(3)
Revisao
Máscara:
@!
Contexto:
Real
TFJ_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
Validação:
Pertence("1234567")
7 valores possíveis
  • 1Ativo
  • 2Em Revisao
  • 3Revisado
  • 4Aguardado aprovacao
  • 5Encerrado
  • 6Cancelado
  • 7Inativo
TFJ_LUCRO
Numérico (N)(5,2)
%Lucro
Máscara:
@E 99.99
Contexto:
Real
Validação:
Positivo()
TFJ_ADM
Numérico (N)(5,2)
%Adm
Máscara:
@E 99.99
Contexto:
Real
Validação:
Positivo()
TFJ_CODVIS
Caractere (C)(6)
Vistoria
Máscara:
@!
Contexto:
Real
TFJ_TIPREV
Caractere (C)(3)
Tp. Revisao
Máscara:
@!
Contexto:
Real
Validação:
ExistCpo("CN0")
TFJ_CODTAB
Caractere (C)(6)
Tabela
Máscara:
@!
Contexto:
Real
TFJ_TABREV
Caractere (C)(3)
Revisao
Máscara:
@!
Contexto:
Real
TFJ_TABXML
Memo (M)(10)
XML
Contexto:
Real
TFJ_GESMAT
Caractere (C)(1)
Ges. Mat.
Máscara:
@!
Contexto:
Real
Validação:
At740VlGMat()
5 valores possíveis
  • 1Material
  • 2Material por valor
  • 3Percentual (obsoleto)
  • 4MI Item/MC Valor
  • 5MI Valor/MC Item
TFJ_OBSPRC
Memo (M)(10)
Observacao
Contexto:
Real
TFJ_TPFRET
Caractere (C)(1)
Tipo Frete
Máscara:
@9
Contexto:
Real
Validação:
Pertence("12") .or. Vazio()
2 valores possíveis
  • 1CIF
  • 2FOB
TFJ_SRVEXT
Caractere (C)(1)
Serv. Extra?
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
TFJ_CLIPED
Caractere (C)(1)
Cli Ped Rem
Máscara:
@!
Contexto:
Real
Validação:
!Vazio() .Or. Pertence("12")
2 valores possíveis
  • 1Orcamento de Servicos
  • 2Local de Atendimento
TFJ_ORCPAI
Caractere (C)(11)
Orc Serv Pai
Máscara:
@!
Contexto:
Real
TFJ_GRPCOM
Caractere (C)(8)
Cod. Grupo
Máscara:
@!
Contexto:
Real
Consulta F3:
TWJ
Validação:
ExistCpo("TWJ") .OR. Vazio()
TFJ_DSGCN
Caractere (C)(1)
Desg Cont
Contexto:
Real
TFJ_ANTECI
Caractere (C)(1)
Fat Antecip?
Máscara:
@9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
TFJ_CNTREC
Caractere (C)(1)
Contr. Rec.
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
TFJ_RGMCX
Caractere (C)(1)
Regime Caixa
Máscara:
@!
Contexto:
Real
Validação:
Vazio() .OR. Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
TFJ_ORCSIM
Caractere (C)(1)
Orc. Simp.
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
TFJ_VEND
Caractere (C)(6)
Vendedor
Máscara:
@!
Contexto:
Real
Consulta F3:
SA3
Validação:
ExistCpo("SA3")
TFJ_DATA
Data (D)(8)
Data
Contexto:
Real

SELECT de exemplo da tabela TFJ

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
  TFJ.TFJ_FILIAL,
  TFJ.TFJ_CODIGO,
  TFJ.TFJ_PROPOS,
  TFJ.TFJ_PREVIS,
  TFJ.TFJ_ENTIDA,
  TFJ.TFJ_CODENT,
  TFJ.TFJ_LOJA,
  TFJ.TFJ_CONDPG
FROM TFJ010 TFJ
WHERE TFJ.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.