Tabela CFB

Contrib. Diferida Period. Ant.
12camposNome físicoCFB010(empresa 01)

Campos da tabela CFB

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

12
CampoDescrição
CFB_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CFB_CODCON
Caractere (C)(2)
Cod. Contr.
Máscara:
@!
Contexto:
Real
CFB_TPCON
Caractere (C)(3)
Tp. Contr.
Máscara:
@!
Contexto:
Real
CFB_VLRREC
Numérico (N)(14,2)
Total Receb
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CFB_CONREC
Numérico (N)(14,2)
Contr.Rec.
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CFB_PERDIF
Caractere (C)(6)
Periodo
Máscara:
@R 99/9999
Contexto:
Real
CFB_DTPGTO
Data (D)(8)
Dt Pgto
Contexto:
Real
CFB_NATCRE
Caractere (C)(2)
Nat. Cred.
Máscara:
@!
Contexto:
Real
CFB_CREDES
Numérico (N)(14,2)
Cred Descont
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CFB_PERAPU
Caractere (C)(6)
Per.Apur.
Máscara:
@R 99/9999
Contexto:
Real
CFB_ALIQ
Numérico (N)(5,2)
Aliquota
Máscara:
@E 99.99
Contexto:
Real
CFB_CONSOL
Caractere (C)(1)
Consolidado
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao

SELECT de exemplo da tabela CFB

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
  CFB.CFB_FILIAL,
  CFB.CFB_CODCON,
  CFB.CFB_TPCON,
  CFB.CFB_VLRREC,
  CFB.CFB_CONREC,
  CFB.CFB_PERDIF,
  CFB.CFB_DTPGTO,
  CFB.CFB_NATCRE
FROM CFB010 CFB
WHERE CFB.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.