Tabela BT6

Empresa Contrato Produto
44camposNome físicoBT6010(empresa 01)

Campos da tabela BT6

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

44
CampoDescrição
BT6_VERSAO
Caractere (C)(3)
Versao
Máscara:
@!
Consulta F3:
BSUPLS
Validação:
PlsVldVer()
BT6_FILIAL
Caractere (C)(2)
Filial
BT6_CODINT
Caractere (C)(4)
Operadora
Máscara:
@R !.!!!-!!!!
BT6_CODIGO
Caractere (C)(4)
Codigo
Máscara:
@!
BT6_NUMCON
Caractere (C)(12)
Num.Contrato
Máscara:
@!
BT6_VERCON
Caractere (C)(3)
Versao Cont.
Máscara:
@!
BT6_SUBCON
Caractere (C)(9)
Sub-Contrato
Máscara:
@!
BT6_VERSUB
Caractere (C)(3)
Versao Sub.
Máscara:
@!
BT6_CODPRO
Caractere (C)(4)
Cod. Produto
Máscara:
@!
Consulta F3:
B25PLS
Validação:
PLSVLDGD({"BT6_CODPRO","BT6_VERSAO"}) .And. PLS800Tipo(BG9->BG9_CODINT,M->BT6_CODPRO,"2,3")
BT6_DESPRO
Caractere (C)(65)
Desc.Produto
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BT6_TIPOPR
Caractere (C)(1)
Tipo
Máscara:
@!
Validação:
Pertence("123")
3 valores possíveis
  • 1Plano/Produto
  • 2Opcional
  • 3Termo Aditivo
BT6_CODSEG
Caractere (C)(3)
Segmentacao
Máscara:
@!
Consulta F3:
B52PLS
Validação:
PlsZero() .And. ExistCpo("BI6",M->BT6_CODSEG,1)
Modo de edição (When):
M->BT6_APOSRG=="0"
BT6_DESSEG
Caractere (C)(60)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BT6_MODPAG
Caractere (C)(3)
Modal. Cobr.
Máscara:
@!
Validação:
Pertence("129")
Modo de edição (When):
M->BT6_APOSRG=="0"
3 valores possíveis
  • 1Pre-Pagamento
  • 2Demais Modalidades
  • 9Nao Definida
BT6_APOSRG
Caractere (C)(1)
Regulament.
Máscara:
@!
Validação:
Pertence("01")
2 valores possíveis
  • 0Nao
  • 1Sim
BT6_CODACO
Caractere (C)(2)
Acomodacao
Máscara:
@!
Consulta F3:
B45PLS
Validação:
ExistCpo("BI4",M->BT6_CODACO,1)
Modo de edição (When):
M->BT6_APOSRG=="0"
BT6_DESACO
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BT6_ABRANG
Caractere (C)(2)
Abrangencia
Máscara:
@!
Consulta F3:
BD9PLS
Validação:
PlsZero() .And. ExistCpo("BF7",M->BT6_ABRANG,1)
Modo de edição (When):
M->BT6_APOSRG=="0"
BT6_DESABR
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BT6_TIPCON
Caractere (C)(3)
Tp. Contrato
Máscara:
@!
BT6_DESCON
Caractere (C)(30)
Ds Tp Contr.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BT6_CODPTU
Caractere (C)(8)
Cod EDI
Máscara:
@!
BT6_COBJUR
Caractere (C)(1)
Cob. Juros ?
Máscara:
@!
2 valores possíveis
  • 0Nao
  • 1Sim
BT6_TAXDIA
Numérico (N)(9,2)
% Juros Dia
Máscara:
@E 999,999.99
BT6_JURDIA
Numérico (N)(9,2)
Vl Juros Dia
Máscara:
@E 999,999.99
BT6_COBRAT
Caractere (C)(1)
Cob.Pro Rata
Máscara:
@!
2 valores possíveis
  • 0Nao
  • 1Sim
BT6_RATSAI
Caractere (C)(1)
Pro Rata Sai
Máscara:
@!
Validação:
Pertence("01")
2 valores possíveis
  • 0Nao
  • 1Sim
BT6_CC
Caractere (C)(9)
Centro Custo
Máscara:
@!
Consulta F3:
CTT
Validação:
Vazio() .Or. Ctb105CC()
BT6_INFCOB
Caractere (C)(1)
Inf.Cob.?
Máscara:
@!
Validação:
Pertence("01")
2 valores possíveis
  • 1Sim
  • 0Nao
BT6_INFGRC
Caractere (C)(1)
Inf.Grp.Cob?
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BT6_RISCO
Caractere (C)(1)
Inss Risco
Máscara:
@!
Validação:
Pertence("01")
2 valores possíveis
  • 0Pequeno risco
  • 1Grande risco
BT6_CPFM
Caractere (C)(1)
Co-Partic. ?
Máscara:
@!
Validação:
pertence("01")
Modo de edição (When):
M->BT6_MODPAG=="1"
2 valores possíveis
  • 0Nao
  • 1Sim
BT6_RETGUI
Caractere (C)(1)
Ret. Guia?
Máscara:
@!
Validação:
Pertence("01")
2 valores possíveis
  • 1Sim
  • 0Nao
BT6_CODSIM
Caractere (C)(20)
Cod Similar.
Contexto:
Real
Consulta F3:
BM0PLS
BT6_COBCPF
Caractere (C)(1)
For.Cob.PF
Máscara:
@!
Contexto:
Real
Validação:
Pertence("01")
2 valores possíveis
  • 0Comp.Anterior
  • 1Comp.Atual
BT6_SOMINT
Caractere (C)(1)
Som.Intern?
Máscara:
@!
Validação:
Pertence("01")
Modo de edição (When):
M->BT6_RETGUI=="1"
2 valores possíveis
  • 1Sim
  • 0Nao
BT6_DESMEN
Numérico (N)(7,2)
Desc.Mens.
Máscara:
@E 9,999.99
BT6_ALLCRE
Caractere (C)(1)
Todos Cred.
Máscara:
@!
Contexto:
Real
Validação:
Pertence("01")
2 valores possíveis
  • 0Nao
  • 1Sim
BT6_DATINC
Data (D)(8)
Dt. Inclusao
Contexto:
Real
BT6_CODPAT
Caractere (C)(6)
Cd. Patronal
Máscara:
@!
Contexto:
Real
Consulta F3:
B1JPLS
Validação:
PL660VLPAT("BT6")
BT6_DESPAT
Caractere (C)(40)
Ds. Patronal
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BT6_MDFTPT
Caractere (C)(1)
Mod Cobranca
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Empresa
  • 2Titular
  • 3Compartilhado
BT6_CONTA
Caractere (C)(20)
Cod.Conta
Máscara:
@!
Contexto:
Real
Consulta F3:
CT1
Validação:
ExistCpo('CT1').or.Vazio()
BT6_DESCCT
Caractere (C)(60)
Desc.Conta
Máscara:
@!
Contexto:
Virtual (não existe no banco)

SELECT de exemplo da tabela BT6

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
  BT6.BT6_VERSAO,
  BT6.BT6_FILIAL,
  BT6.BT6_CODINT,
  BT6.BT6_CODIGO,
  BT6.BT6_NUMCON,
  BT6.BT6_VERCON,
  BT6.BT6_SUBCON,
  BT6.BT6_VERSUB
FROM BT6010 BT6
WHERE BT6.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.