Tabela C0R

Documentos Arrecadação
50camposNome físicoC0R010(empresa 01)

Campos da tabela C0R

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

50
CampoDescrição
C0R_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
C0R_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
C0R_PERIOD
Caractere (C)(6)
Periodo
Máscara:
@R 99/9999
Contexto:
Real
Validação:
xFunVld() .and. xFunPer()
C0R_UF
Caractere (C)(6)
ID UF
Máscara:
@!
Contexto:
Real
Consulta F3:
C09
Validação:
XFUNVldCmp("C09",3).And.XFUNVld().And.XFUNNWFunc('A027LogAlt')
C0R_DUF
Caractere (C)(220)
Descr. UF
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C0R_CODDA
Caractere (C)(1)
Modelo DA
Máscara:
@!
Contexto:
Real
Validação:
Pertence("012") .and. xFunVld() .and. xFunNWFunc("A027LogAlt")
3 valores possíveis
  • 0DA Estadual
  • 1GNRE
  • 2DARF
C0R_NUMDA
Caractere (C)(25)
Num. DA
Máscara:
@!
Contexto:
Real
Validação:
XFUNVld().And.XFUNNWFunc('A027LogAlt')
C0R_DESDOC
Caractere (C)(220)
Des.Docto
Máscara:
@!
Contexto:
Real
C0R_CODAUT
Caractere (C)(100)
Aut Bancaria
Máscara:
@!
Contexto:
Real
C0R_VLRPRC
Numérico (N)(16,2)
Vl.Principal
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
Validação:
XFUNNWFunc('A027LogAlt')
C0R_ATUMON
Numérico (N)(16,2)
Atual.Monet.
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C0R_JUROS
Numérico (N)(16,2)
Juros
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C0R_MULTA
Numérico (N)(16,2)
Multa
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
Validação:
FWFLDGET("C0R_VLRPRC")+M->C0R_MULTA+FWFLDGET("C0R_JUROS")+FWFLDGET("C0R_ATUMON") > FWFLDGET("C0R_VLDA")
C0R_VLDA
Numérico (N)(16,2)
Valor DA
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
Validação:
TAF027Valid()
C0R_DTVCT
Data (D)(8)
Vencimento
Contexto:
Real
C0R_DTPGT
Data (D)(8)
Dt Pagamento
Contexto:
Real
C0R_CODREC
Caractere (C)(6)
Cod.Receita
Máscara:
@!
Contexto:
Real
Consulta F3:
C6R
Validação:
XFUNVldCmp("C6R",3) .And. xFunVldRec()
C0R_DCODRE
Caractere (C)(220)
Des.Receita
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C0R_DETREC
Caractere (C)(6)
Cod.Det.Rec
Máscara:
@!
Contexto:
Real
Consulta F3:
C6S
Validação:
XFUNVldCmp("C6S",3)
C0R_DDETRE
Caractere (C)(220)
Des.Det.Rec
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C0R_CODPRD
Caractere (C)(6)
Cod.Produto
Máscara:
@!
Contexto:
Real
Consulta F3:
C6U
Validação:
XFUNVldCmp("C6U",3)
C0R_DCODPR
Caractere (C)(220)
Des.Produto
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C0R_TIPDOC
Caractere (C)(6)
Tip.Doc.Orig
Máscara:
@!
Contexto:
Real
Consulta F3:
C6T
Validação:
XFUNVldCmp("C6T",3)
C0R_DTIPDO
Caractere (C)(220)
Des.Tip.Doc
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C0R_DOCORI
Caractere (C)(60)
Doc.Origem
Máscara:
@!
Contexto:
Real
C0R_CONVEN
Caractere (C)(60)
Num.Convenio
Máscara:
@!
Contexto:
Real
C0R_NUMPAR
Caractere (C)(3)
Num.Da.Parce
Máscara:
@!
Contexto:
Real
C0R_REFERE
Caractere (C)(1)
Ref.Periodo
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 012345")
6 valores possíveis
  • 0Mensal
  • 11ª Quinzena
  • 22ª Quinzena
  • 31° Decendio
  • 42° Decendio
  • 53° Decendio
C0R_CDPART
Caractere (C)(36)
Id. Particip
Máscara:
@!
Contexto:
Real
C0R_DCDPAR
Caractere (C)(220)
Nome Partic.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C0R_CODBAN
Caractere (C)(6)
Id. Banco
Máscara:
@!
Contexto:
Real
Consulta F3:
C1V
Validação:
Vazio() .Or. XFUNVldCmp("C1V",3)
C0R_DCODBA
Caractere (C)(220)
Desc. Banco
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C0R_CODAGE
Caractere (C)(5)
Cod. Agencia
Máscara:
@!
Contexto:
Real
C0R_NUMCC
Caractere (C)(50)
Num. CC
Máscara:
@!
Contexto:
Real
C0R_VLDEV
Numérico (N)(16,2)
Vlr. Devol.
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C0R_VLRES
Numérico (N)(16,2)
Vlr. Res.
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C0R_STATUS
Caractere (C)(1)
Status Reg.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 01")
2 valores possíveis
  • 0Reg. Valido
  • 1Reg. Invalido
C0R_DIGAGE
Numérico (N)(2)
Digito
Máscara:
@E 99
Contexto:
Real
C0R_CODOBR
Caractere (C)(6)
Id. Obrig.
Máscara:
@!
Contexto:
Real
Consulta F3:
C3E
Validação:
XFUNVldCmp("C3E",3)
C0R_TPREC
Caractere (C)(1)
Tipo Recolh.
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Apuracao
  • 2Na ocorrencia Fato Gerador
  • 3Antecipado
C0R_DCODOB
Caractere (C)(220)
Descr Obrig
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C0R_TPIMPO
Caractere (C)(2)
Tp. Imposto
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 01ICMS
  • 02ICMS-ST
  • 03FCP
  • 04FCP-ST
  • 05DIFAL
C0R_NRPROC
Caractere (C)(6)
ID Proc Ref
Máscara:
@!
Contexto:
Real
Consulta F3:
C1G
Validação:
XFUNVldCmp("C1G",3)
C0R_DNRPRO
Caractere (C)(220)
Descr Proces
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C0R_PROCES
Caractere (C)(1)
Proc.GNRE
Máscara:
@!
Validação:
Pertence('12')
C0R_VLDESC
Numérico (N)(16,2)
Desconto
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C0R_VLCOMP
Numérico (N)(16,2)
Compensado
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C0R_VLPAGO
Numérico (N)(16,2)
Valor Pago
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C0R_STPGTO
Caractere (C)(1)
Status Pgto
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12 ")
2 valores possíveis
  • 1Em Aberto
  • 2Pago
C0R_CPARTI
Caractere (C)(60)
Cod. Partic.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
C1HA
Validação:
XFUNVldCmp("C1H",1)

SELECT de exemplo da tabela C0R

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
  C0R.C0R_FILIAL,
  C0R.C0R_ID,
  C0R.C0R_PERIOD,
  C0R.C0R_UF,
  C0R.C0R_CODDA,
  C0R.C0R_NUMDA,
  C0R.C0R_DESDOC,
  C0R.C0R_CODAUT
FROM C0R010 C0R
WHERE C0R.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.