Tabela CUI

Receita Venda Ingressos
13camposNome físicoCUI010(empresa 01)

Campos da tabela CUI

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

13
CampoDescrição
CUI_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CUI_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
CUI_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CUI_TPINSC
Caractere (C)(1)
Tipo Inscric
Máscara:
@!
Contexto:
Real
Validação:
Pertence("1")
1 valores possíveis
  • 1CNPJ
CUI_NRINSC
Caractere (C)(14)
Num. Inscric
Máscara:
@!
Contexto:
Real
CUI_NBOLET
Caractere (C)(4)
Num. Boletim
Máscara:
@!
Contexto:
Real
CUI_TPINGR
Caractere (C)(1)
Tp Ingresso
Máscara:
@!
Contexto:
Real
Validação:
Pertence("1234")
4 valores possíveis
  • 1Arquibancada
  • 2Geral
  • 3Cadeiras
  • 4Camarote
CUI_TPRECO
Caractere (C)(1)
Tipo Preco
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Normal
  • 2Reduzido
CUI_QTDIVA
Numérico (N)(6)
Num a Venda
Máscara:
@E 999,999
Contexto:
Real
CUI_QTDIVS
Numérico (N)(6)
Num Vendidos
Máscara:
@E 999,999
Contexto:
Real
CUI_QTDIDV
Numérico (N)(6)
Num Ingr Dev
Máscara:
@E 999,999
Contexto:
Real
CUI_PRCIND
Numérico (N)(16,2)
Prec ind Ing
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
CUI_TOTARC
Numérico (N)(16,2)
Total Arre
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real

SELECT de exemplo da tabela CUI

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
  CUI.CUI_FILIAL,
  CUI.CUI_ID,
  CUI.CUI_VERSAO,
  CUI.CUI_TPINSC,
  CUI.CUI_NRINSC,
  CUI.CUI_NBOLET,
  CUI.CUI_TPINGR,
  CUI.CUI_TPRECO
FROM CUI010 CUI
WHERE CUI.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.