Tabela GUR

EXCECOES DE TRIBUTACAO DE ICMS
19camposNome físicoGUR010(empresa 01)

Campos da tabela GUR

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

19
CampoDescrição
GUR_FILIAL
Caractere (C)(2)
Filial
GUR_UF
Caractere (C)(2)
UF
Máscara:
@!
Contexto:
Real
Consulta F3:
12
Validação:
NAOVAZIO().AND.ExistCpo("SX5","12"+M->GUR_UF)
GUR_PRIOR
Caractere (C)(2)
Prioridade
Máscara:
99
Contexto:
Real
GUR_UFORIG
Caractere (C)(2)
UF Origem
Máscara:
@!
Contexto:
Real
Consulta F3:
12
Validação:
NAOVAZIO().AND.((ALLTRIM(M->GUR_UFORIG)=="*").OR.ExistCpo("SX5","12"+M->GUR_UFORIG))
GUR_UFDEST
Caractere (C)(2)
UF Dest
Máscara:
@!
Contexto:
Real
Consulta F3:
12
Validação:
NAOVAZIO().AND.((ALLTRIM(M->GUR_UFDEST)=="*").OR.ExistCpo("SX5","12"+M->GUR_UFDEST))
GUR_TPITEM
Caractere (C)(4)
Tipo Item
Máscara:
@!
Contexto:
Real
Consulta F3:
GUQ
Validação:
ALLTRIM(M->GUR_TPITEM)=="*".OR.GFEExistC("GUQ",,,"GUQ->GUQ_SIT=='1'")
GUR_CDTPOP
Caractere (C)(10)
Tipo Oper
Máscara:
@!
Contexto:
Real
Consulta F3:
GV4
Validação:
ALLTRIM(M->GUR_CDTPOP)=="*".OR.GFEExistC("GV4",,M->GUR_CDTPOP,"GV4->GV4_SIT=='1'")
GUR_TPCLFR
Caractere (C)(4)
Clas Frete
Máscara:
@!
Contexto:
Real
Consulta F3:
GUB
Validação:
((ALLTRIM(M->GUR_TPCLFR)=="*").OR.ExistCpo("GUB",M->GUR_TPCLFR))
GUR_TRIBT
Caractere (C)(1)
Transp Contr
Máscara:
@!
Contexto:
Real
Validação:
Pertence("012")
3 valores possíveis
  • 0Indiferente
  • 1Sim
  • 2Nao
GUR_TRTRAN
Caractere (C)(1)
Reg Trb Tran
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 0Quaisquer
  • 1Normal
  • 2Simplificado
  • 3Especial
  • 4Imune
GUR_TRIBR
Caractere (C)(1)
Remet Contr
Máscara:
@!
Contexto:
Real
Validação:
Pertence("012")
3 valores possíveis
  • 0Indiferente
  • 1Sim
  • 2Nao
GUR_TRREM
Caractere (C)(1)
Reg Trb Rem
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 0Quaisquer
  • 1Normal
  • 2Simplificado
  • 3Especial
  • 4Imune
GUR_TRIBD
Caractere (C)(1)
Dest Contrib
Máscara:
@!
Contexto:
Real
Validação:
Pertence("012")
3 valores possíveis
  • 0Indiferente
  • 1Sim
  • 2Nao
GUR_TRDEST
Caractere (C)(1)
Reg Trb Dest
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 0Quaisquer
  • 1Normal
  • 2Simplificado
  • 3Especial
  • 4Imune
GUR_USO
Caractere (C)(1)
Uso
Máscara:
@!
Contexto:
Real
Validação:
Pertence("012")
3 valores possíveis
  • 0Quaisquer
  • 1Industrializacao/Venda
  • 2Uso/Consumo
GUR_CICMS
Caractere (C)(1)
Com ICMS?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("012")
3 valores possíveis
  • 0Indiferente
  • 1Sim
  • 2Nao
GUR_TPTRIB
Caractere (C)(1)
Tipo Tribut
Máscara:
@!
Contexto:
Real
Validação:
GFEA13RED()
7 valores possíveis
  • 1Tributado
  • 2Isento/Nao-tributado
  • 3Subs Tributaria
  • 4Diferido
  • 5Reduzido
  • 6Outros
  • 7Presumido
GUR_PCICMS
Numérico (N)(5,2)
Aliq ICMS
Máscara:
@E 99.99
Contexto:
Real
Validação:
Positivo()
GUR_PCREIC
Numérico (N)(5,2)
% Red. ICMS
Máscara:
@E 99.99
Contexto:
Real
Validação:
GFEA13RED()

SELECT de exemplo da tabela GUR

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
  GUR.GUR_FILIAL,
  GUR.GUR_UF,
  GUR.GUR_PRIOR,
  GUR.GUR_UFORIG,
  GUR.GUR_UFDEST,
  GUR.GUR_TPITEM,
  GUR.GUR_CDTPOP,
  GUR.GUR_TPCLFR
FROM GUR010 GUR
WHERE GUR.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.