Tabela NZB

Tipo Serv. Corresp. x Clientes
7camposNome físicoNZB010(empresa 01)

Campos da tabela NZB

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

CampoDescrição
NZB_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
NZB_CCLIEN
Caractere (C)(6)
Cod. Cliente
Máscara:
@!
Contexto:
Real
Validação:
ExistCpo('SA1', M->NZB_CCLIEN,1)
NZB_LCLIEN
Caractere (C)(2)
Loja Cliente
Máscara:
@!
Contexto:
Real
Validação:
ExistCpo('SA1', M->NZB_CCLIEN+M->NZB_LCLIEN,1)
NZB_CTPSER
Caractere (C)(3)
Cod Tip Serv
Contexto:
Real
Consulta F3:
NZA
Validação:
ExistCpo('NZA', M->NZB_CTPSER, 1) .And. J148vTpSer(M->NZB_CTPSER)
NZB_DTPSER
Caractere (C)(50)
Desc Tip Ser
Contexto:
Virtual (não existe no banco)
NZB_REEMBO
Caractere (C)(1)
Reem Corres
Máscara:
@!
Contexto:
Real
Validação:
J148vTpSer(M->NZB_REEMBO) .And. Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
NZB_REEMPR
Caractere (C)(1)
Reem Prepost
Máscara:
@!
Contexto:
Real
Validação:
J148vTpSer(M->NZB_REEMPR) .And. Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao

SELECT de exemplo da tabela NZB

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
  NZB.NZB_FILIAL,
  NZB.NZB_CCLIEN,
  NZB.NZB_LCLIEN,
  NZB.NZB_CTPSER,
  NZB.NZB_REEMBO,
  NZB.NZB_REEMPR
FROM NZB010 NZB
WHERE NZB.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.