Tabela G48

Acordos Aplicados Fornecedores
65camposNome físicoG48010(empresa 01)

Campos da tabela G48

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

65
CampoDescrição
G48_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
G48_OK
Lógico (L)(1)
OK
Contexto:
Real
G48_NUMID
Caractere (C)(10)
Num. Ident.
Máscara:
@!
Contexto:
Real
G48_IDITEM
Caractere (C)(4)
Id Item
Máscara:
@!
Contexto:
Real
G48_NUMSEQ
Caractere (C)(2)
Sequencia
Máscara:
@!
Contexto:
Real
G48_APLICA
Caractere (C)(3)
Aplicacao
Máscara:
@!
Contexto:
Real
G48_CODACD
Caractere (C)(6)
Acordo
Máscara:
@!
Contexto:
Real
G48_CODREC
Caractere (C)(2)
Revisao
Máscara:
@!
G48_DESCR
Caractere (C)(60)
Descricao
Máscara:
@!
Contexto:
Real
G48_CLIFOR
Caractere (C)(1)
Cli / For
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Cliente
  • 2Fornecedor
G48_NIVEL
Caractere (C)(2)
Nivel
Máscara:
@!
Contexto:
Real
G48_TPVLR
Caractere (C)(1)
Tipo Valor
Máscara:
@!
2 valores possíveis
  • 1Porcentagem
  • 2Valor Fixo
G48_TPACD
Caractere (C)(1)
Tipo
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123")
3 valores possíveis
  • 1Credito
  • 2Debito
  • 3Demonstrativo
G48_CLASS
Caractere (C)(3)
Classific.
Máscara:
@!
Contexto:
Real
G48_DSCLAS
Caractere (C)(30)
Desc. Class.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_CODPRD
Caractere (C)(15)
Produto
Máscara:
@!
G48_DSCPRD
Caractere (C)(40)
Desc Prod
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_ACDBAS
Caractere (C)(6)
Acordo Base
Máscara:
@!
Contexto:
Real
G48_DACDBA
Caractere (C)(50)
Acordo Base
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_BASECL
Caractere (C)(2)
Base Calc.
Máscara:
@!
Contexto:
Real
G48_NBASEC
Caractere (C)(55)
Desc B Calc
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_VLBASE
Numérico (N)(12,2)
Valor Base
Máscara:
@E 999,999,999.99
Contexto:
Real
G48_PERACD
Numérico (N)(6,2)
% Acordo
Máscara:
@E 999.99
Contexto:
Real
G48_VLACD
Numérico (N)(12,2)
Vl. Acordo
Máscara:
@E 999,999,999.99
Contexto:
Real
Validação:
Positivo()
G48_MOEDA
Caractere (C)(2)
Moeda
Máscara:
@!
Contexto:
Real
Consulta F3:
G5T
Validação:
ExistCpo("G5T",M->G48_MOEDA)
G48_DSCMOE
Caractere (C)(10)
Simb. Moeda
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
Validação:
Pertence("1234")
4 valores possíveis
  • 1Em Aberto
  • 2Divergente
  • 3Cancelado
  • 4Finalizado
G48_COMSER
Caractere (C)(1)
Cobranca
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Na Fatura
  • 2Na Apuracao
G48_INTERV
Caractere (C)(1)
Intervencao
Máscara:
@!
Contexto:
Real
Validação:
Pertence("1234")
4 valores possíveis
  • 1Incluido Manualmente
  • 2Cancelado Manualmente
  • 3Incluido Automatico
  • 4Ajuste Manual
G48_MOTINT
Caractere (C)(6)
Motivo Int.
Máscara:
@!
Contexto:
Real
Consulta F3:
G5Q
Validação:
ExistCpo("G5Q")
G48_DSCMTI
Caractere (C)(40)
Desc. Motivo
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_DTINT
Data (D)(8)
Data Interv.
Contexto:
Real
G48_USUINT
Caractere (C)(6)
Usuario Int.
Máscara:
@!
Contexto:
Real
G48_NOMUSU
Caractere (C)(40)
Nome Usuario
Máscara:
@!
Contexto:
Real
G48_CONTAC
Caractere (C)(20)
Ct. Contabil
Máscara:
@!
Contexto:
Real
Consulta F3:
CT1
Validação:
Vazio() .Or. Ctb105Cta()
G48_DSCCT1
Caractere (C)(40)
Desc Ct Ctb
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_CCUSTO
Caractere (C)(9)
Centro Custo
Máscara:
@!
Contexto:
Real
Consulta F3:
CTT
Validação:
Vazio() .Or. Ctb105CC()
G48_DSCCTT
Caractere (C)(40)
Desc C.Custo
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_ITEMCO
Caractere (C)(9)
Item Cont.
Máscara:
@!
Contexto:
Real
Consulta F3:
CTD
Validação:
Vazio() .Or. Ctb105Item()
G48_DSCCTD
Caractere (C)(40)
Desc It Ctb
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_CLASVL
Caractere (C)(9)
Classe Valor
Máscara:
@!
Contexto:
Real
Consulta F3:
CTH
Validação:
Vazio() .Or. CTB105CLVL()
G48_DSCCTH
Caractere (C)(40)
Desc C Valor
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_ESTORN
Caractere (C)(1)
Estorno
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
G48_APUGER
Caractere (C)(1)
Ger. Apura.
Máscara:
@!
2 valores possíveis
  • 1SIM
  • 2NAO
G48_CODAPU
Caractere (C)(21)
Apuracao
Máscara:
@!
G48_TPCOMB
Caractere (C)(1)
Tipo Combo
Máscara:
@!
2 valores possíveis
  • 1Por RV
  • 2Por OS
G48_CHAVEC
Caractere (C)(20)
Chave Combo
Máscara:
@!
G48_OPERA
Caractere (C)(1)
Operacao
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 123")
3 valores possíveis
  • 1Inclusao
  • 2Alteracao
  • 3Cancelamento
G48_DTINCL
Data (D)(8)
Dt. Inclusao
Contexto:
Real
G48_SEGNEG
Caractere (C)(1)
Seg. Negocio
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123")
3 valores possíveis
  • 1Corporativo
  • 2Eventos
  • 3Lazer
G48_CANSIS
Caractere (C)(1)
Cancelado
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
G48_RECCON
Lógico (L)(1)
Na Conc.?
Contexto:
Real
G48_CONORI
Caractere (C)(6)
Conc. Ori.
Máscara:
@!
Contexto:
Real
G48_CONINU
Caractere (C)(6)
Con. Inut.
Máscara:
@!
Contexto:
Real
G48_MARK
Lógico (L)(1)
Marcacao
Contexto:
Real
G48_CODCON
Caractere (C)(6)
Cod. Concil
Máscara:
@!
Contexto:
Real
G48_ATUIF
Caractere (C)(1)
Atualiza IF
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
G48_FILAPU
Caractere (C)(2)
Filial Apura
Contexto:
Real
G48_DSFAPU
Caractere (C)(41)
Nome Filial
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_FILREF
Caractere (C)(2)
Filial Ref.
Contexto:
Real
G48_PRICMB
Caractere (C)(1)
Item Princ?
Máscara:
@!
Contexto:
Real
Validação:
Pertence('12')
2 valores possíveis
  • 1Sim
  • 2Nao
G48_NATURE
Caractere (C)(10)
Natureza
Contexto:
Real
Consulta F3:
SED
Validação:
TurVldNat()
G48_DSCNAT
Caractere (C)(30)
Desc Nat Fin
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G48_CANFOP
Caractere (C)(1)
Can Acr FOP?
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
G48_CANCON
Caractere (C)(1)
Canc. Conc.?
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao

SELECT de exemplo da tabela G48

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
  G48.G48_FILIAL,
  G48.G48_OK,
  G48.G48_NUMID,
  G48.G48_IDITEM,
  G48.G48_NUMSEQ,
  G48.G48_APLICA,
  G48.G48_CODACD,
  G48.G48_CODREC
FROM G48010 G48
WHERE G48.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.