Tabela C5Z

Contr.Val.Ret.Pis/Pasep/Cofins
12camposNome físicoC5Z010(empresa 01)

Campos da tabela C5Z

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

12
CampoDescrição
C5Z_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
C5Z_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
C5Z_TPTRIB
Caractere (C)(1)
Tipo Tributo
Máscara:
@!
Contexto:
Real
Validação:
Pertence('12').And.XFUNVld()
2 valores possíveis
  • 1PIS/Pasep
  • 2Cofins
C5Z_PERIOD
Data (D)(8)
Data Movto
Contexto:
Real
Validação:
XFUNVld()
C5Z_INDNAT
Caractere (C)(6)
Ind.Nat.Ret
Máscara:
@!
Contexto:
Real
Consulta F3:
C1Q
Validação:
XFUNVldCmp("C1Q",3).And.XFUNVld()
C5Z_DINDNA
Caractere (C)(220)
Des.Nat.Ret
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C5Z_PERRET
Caractere (C)(6)
Per.Rec.Ret
Máscara:
@R 99/9999
Contexto:
Real
Validação:
XFUNVld()
C5Z_VLRRET
Numérico (N)(16,2)
Vlr.Tot.Ret
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C5Z_VLRRTD
Numérico (N)(16,2)
Vlr.Ret.Ded
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C5Z_VLRRES
Numérico (N)(16,2)
Vl.Ret.PRest
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C5Z_VLRRDC
Numérico (N)(16,2)
Vl.Ret.DComp
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
C5Z_STATUS
Caractere (C)(1)
Status Reg.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 012349")
6 valores possíveis
  • 0Reg.Valido
  • 1Reg.Invalido
  • 2Reg.Transmitido
  • 3Reg.Transmitido com inconsistencia
  • 4Reg.Transmitido valido
  • 9Em Processamento

SELECT de exemplo da tabela C5Z

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
  C5Z.C5Z_FILIAL,
  C5Z.C5Z_ID,
  C5Z.C5Z_TPTRIB,
  C5Z.C5Z_PERIOD,
  C5Z.C5Z_INDNAT,
  C5Z.C5Z_PERRET,
  C5Z.C5Z_VLRRET,
  C5Z.C5Z_VLRRTD
FROM C5Z010 C5Z
WHERE C5Z.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.