Tabela CQN

Registro W200- Declaracao Pais
24camposNome físicoCQN010(empresa 01)

Campos da tabela CQN

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

24
CampoDescrição
CQN_FILIAL
Caractere (C)(2)
FIlial
Contexto:
Real
CQN_CODID
Caractere (C)(6)
Codigo Ident
Máscara:
@!
Contexto:
Real
CQN_ITEM
Caractere (C)(4)
Item
Máscara:
9999
Contexto:
Real
CQN_REG
Caractere (C)(4)
Registro
Máscara:
@!
Contexto:
Real
CQN_JURI
Caractere (C)(2)
Juris.Res.Tr
Máscara:
@!
Contexto:
Real
Consulta F3:
SW
Validação:
Vazio() .Or. ExistCpo("SX5","SW" + M->CQN_JURI)
CQN_RECNRE
Numérico (N)(15,2)
Rec n Rel Es
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_RECNR
Numérico (N)(15,2)
Rec n Relac.
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_RECREE
Numérico (N)(15,2)
Rec Rel Estg
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_RECREL
Numérico (N)(15,2)
Rec Relacion
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_RETOTE
Numérico (N)(15,2)
Tot Moed Est
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_RECTOT
Numérico (N)(15,2)
Rec Total
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_LAIPRE
Numérico (N)(15,2)
Lucro IR Est
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_LPAIR
Numérico (N)(15,2)
Lucr Prej IR
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_IRPAGE
Numérico (N)(15,2)
IR Pago Estr
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_IRPAGO
Numérico (N)(15,2)
IR Pago
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_IRDEVE
Numérico (N)(15,2)
IR Dev.Estr
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_IRDEV
Numérico (N)(15,2)
IR Devido
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_CPSOLE
Numérico (N)(15,2)
Cap.Soc Estr
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_CPSOC
Numérico (N)(15,2)
Cap.Social
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_LUCACE
Numérico (N)(15,2)
LucrAcum Est
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_LUCAC
Numérico (N)(15,2)
Lucr Acum
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_ATTANE
Numérico (N)(15,2)
At.Tangv Est
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_ATTAN
Numérico (N)(15,2)
Atv.Tangiv
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CQN_NUMEMP
Numérico (N)(7)
Num Empreg
Máscara:
@E 9999999
Contexto:
Real

SELECT de exemplo da tabela CQN

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
  CQN.CQN_FILIAL,
  CQN.CQN_CODID,
  CQN.CQN_ITEM,
  CQN.CQN_REG,
  CQN.CQN_JURI,
  CQN.CQN_RECNRE,
  CQN.CQN_RECNR,
  CQN.CQN_RECREE
FROM CQN010 CQN
WHERE CQN.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.