Tabela G8Y

Títulos Faturas
16camposNome físicoG8Y010(empresa 01)

Campos da tabela G8Y

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

16
CampoDescrição
G8Y_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
G8Y_TPFAT
Caractere (C)(1)
Tp Fatura
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Aereo
  • 2Terrestre
G8Y_FATURA
Caractere (C)(9)
Fatura
Máscara:
@!
Contexto:
Real
G8Y_TPDOC
Caractere (C)(1)
Tipo Doc.
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123456789A")
10 valores possíveis
  • 1Receber
  • 2Pagar
  • 3NFE
  • 4NFS
  • 5Transf Tit Orig
  • 6Transf Tit Dest
  • 7Comp Car
  • 8Fat Pagar
  • 9Comp PA
  • AComp RA
G8Y_DOC
Caractere (C)(9)
Documento
Máscara:
@!
Contexto:
Real
G8Y_SERIE
Caractere (C)(3)
Serie
Máscara:
@!
Contexto:
Real
G8Y_PREFIX
Caractere (C)(3)
Prefixo
Máscara:
@!
Contexto:
Real
G8Y_NUM
Caractere (C)(9)
Nota
Máscara:
@!
G8Y_PARCEL
Caractere (C)(2)
Parcela
Máscara:
@!
Contexto:
Real
G8Y_TIPO
Caractere (C)(3)
Tipo
Máscara:
@!
Contexto:
Real
G8Y_VALOR
Numérico (N)(16,2)
Valor Doc.
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
G8Y_FORNEC
Caractere (C)(6)
Fornecedor
Máscara:
@!
Contexto:
Real
G8Y_LOJA
Caractere (C)(2)
Loja
Máscara:
@!
Contexto:
Real
G8Y_IDDOC
Caractere (C)(32)
Id.Doc
Máscara:
@!
Contexto:
Real
G8Y_CONCIL
Caractere (C)(6)
Conciliacao
Máscara:
@!
Contexto:
Real
G8Y_FILREF
Caractere (C)(2)
Filial Ref.

SELECT de exemplo da tabela G8Y

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
  G8Y.G8Y_FILIAL,
  G8Y.G8Y_TPFAT,
  G8Y.G8Y_FATURA,
  G8Y.G8Y_TPDOC,
  G8Y.G8Y_DOC,
  G8Y.G8Y_SERIE,
  G8Y.G8Y_PREFIX,
  G8Y.G8Y_NUM
FROM G8Y010 G8Y
WHERE G8Y.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.