Valor Informado x Documento
A tabela DVR faz parte do sistema ERP Protheus da TOTVS e é utilizada para valor informado x documento.
Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.
A tabela DVR possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.
Nesta página você pode consultar a estrutura completa da tabela DVR, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DVR |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DVR990 |
| X2_NOME | Valor Informado x Documento |
| X2_NOMESPA | Valor Informado vs. Documento |
| X2_NOMEENG | Amount Entered vs. Document |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | - |
| X2_PYME | S |
| X2_MODULO | 43 |
| X2_DISPLAY | DVR_FILIAL+DVR_FILORI+DVR_LOTNFC+DVR_CLIREM+DVR_LOJREM+DVR_CLIDES+DVR_LOJDES+DVR_SERVIC+DVR_NUMNFC+DVR_SERNFC+DVR_CODPRO+DVR_CODPAS |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 2 |
| X2_AUTREC | 2 |
| X2_TAMFIL | 2 |
| X2_TAMUN | 0 |
| X2_TAMEMP | 0 |
| X2_STAMP | 2 |
| X2_INSDT | 2 |
| D_E_L_E_T_ | - |
| R_E_C_N_O_ | 3578 |
| R_E_C_D_E_L_ | 0 |
| X3_ARQUIVO | X3_ORDEM | X3_CAMPO | X3_TIPO | X3_TAMANHO | X3_DECIMAL | X3_TITULO | X3_TITSPA | X3_TITENG | X3_DESCRIC | X3_DESCSPA | X3_DESCENG | X3_PICTURE | X3_VALID | X3_USADO | X3_RELACAO | X3_F3 | X3_NIVEL | X3_RESERV | X3_CHECK | X3_TRIGGER | X3_PROPRI | X3_BROWSE | X3_VISUAL | X3_CONTEXT | X3_OBRIGAT | X3_VLDUSER | X3_CBOX | X3_CBOXSPA | X3_CBOXENG | X3_PICTVAR | X3_WHEN | X3_INIBRW | X3_GRPSXG | X3_FOLDER | X3_PYME | X3_CONDSQL | X3_CHKSQL | X3_IDXSRV | X3_ORTOGRA | X3_IDXFLD | X3_TELA | X3_PICBRV | X3_AGRUP | X3_POSLGT | X3_MODAL | X3_CHKSUM | X3_ADDSUM | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DVR | 01 | DVR_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal de Sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55929 | 0 |
| DVR | 02 | DVR_FILORI | C | 2 | 0 | Fil.Origem | Suc.Origen | Orig.Branch | Filial de Origem | Sucursal de Origen | Origin Branch | - | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55930 | 0 |
| DVR | 03 | DVR_LOTNFC | C | 6 | 0 | No.Lote | No. Lote | Lot No. | No.Lote | No. Lote | Lot No. | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55931 | 0 |
| DVR | 04 | DVR_CLIREM | C | 6 | 0 | Remetente | Remitente | Sender | Cliente Remetente | Cliente Remitente | Sender Customer | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55932 | 0 |
| DVR | 05 | DVR_LOJREM | C | 2 | 0 | Loja Rem. | Tienda Rem. | Unit Rem. | Loja cliente remetente | Tienda cliente remitente | Sender Customer Store | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55933 | 0 |
| DVR | 06 | DVR_CLIDES | C | 6 | 0 | Destinatario | Destinatario | Recipient | Cliente Destinatario | Cliente Destinatario | Recipient Customer | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55934 | 0 |
| DVR | 07 | DVR_LOJDES | C | 2 | 0 | Loja Dest. | Tienda Dest. | Unit Dest. | Loja Cliente Destinatario | Tda Cliente Destinatario | Dest. Cust. Store | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55935 | 0 |
| DVR | 08 | DVR_SERVIC | C | 3 | 0 | Servico | Servicio | Service | Codigo do Servico | Codigo del Servicio | Service Code | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 012 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55936 | 0 |
| DVR | 09 | DVR_NUMNFC | C | 9 | 0 | Doc.Cliente | Doc.Cliente | Doc.Customer | Doc.Cliente | Doc.Cliente | Customer Document | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 019 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55937 | 0 |
| DVR | 10 | DVR_SERNFC | C | 3 | 0 | Serie Dc.Cli | Serie Dc.Cli | Cl.Dc.Series | Serie Dc.Cli | Serie Dc.Cliente | Cl. Dc. Series | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55938 | 0 |
| DVR | 11 | DVR_CODPRO | C | 15 | 0 | Produto | Producto | Product | Codigo do Produto | Codigo del Producto | Product Code | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55939 | 0 |
| DVR | 12 | DVR_CODPAS | C | 2 | 0 | Componente | Componente | Component | Componente de Frete | Componente de Flete | Freight Component | @! | ExistCpo("DT3",M->DVR_CODPAS) .And. TMSA040Vld() | x x x x x x x x x x x x x x x x | - | DT3 | 1 | x xxx | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 55940 | 0 |
| DVR | 13 | DVR_DESPAS | C | 20 | 0 | Descricao | Descripcion | Description | Descricao | Descripcion | Description | @! | - | x x x x x x xx x x x x x x x x | Iif(Inclui,"",Posicione("DT3",1,xFilial("DT3")+DVR->DVR_CODPAS,"DT3_DESCRI")) | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55941 | 0 |
| DVR | 14 | DVR_VALOR | N | 14 | 4 | Qtde | Ctd | Qty. | Quantidade | Cantidad | Amount | @E 999,999,999.9999 | positivo() | x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 55942 | 0 |
| DVR | 15 | DVR_CODNEG | C | 2 | 0 | Cod Negociac | Cod Negociac | Negot. Code | Código da Negociação | Codigo de negociacion | Negotiation Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 119 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 55943 | 0 |
| INDICE | ORDEM | CHAVE | DESCRICAO | DESCSPA | DESCENG | PROPRI | F3 | NICKNAME | SHOWPESQ | IX_VIRTUAL | IX_VIRCUST | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DVR | 1 | DVR_FILIAL+DVR_FILORI+DVR_LOTNFC+DVR_CLIREM+DVR_LOJREM+DVR_CLIDES+DVR_LOJDES+DVR_SERVIC+DVR_NUMNFC+DVR_SERNFC+DVR_CODPRO+DVR_CODPAS+DVR_CODNEG | Fil.Origem + No.Lote + Remetente + Loja Rem. + Destinatario + Loja Des | Suc.Origen + No. Lote + Remitente + Tienda Rem. + Destinatario + Tiend | Orig.Branch + Lot No. + Sender + Unit Rem. + Recipient + Unit Dest. + | S | - | - | S | 2 | 3 | - | 8566 | 0 |
| DVR | 2 | DVR_FILIAL+DVR_FILORI+DVR_LOTNFC+DVR_CLIREM+DVR_LOJREM+DVR_CLIDES+DVR_LOJDES+DVR_CODNEG+DVR_SERVIC+DVR_NUMNFC+DVR_SERNFC+DVR_CODPRO+DVR_CODPAS | Fil.Origem + No.Lote + Remetente + Loja Rem. + Destinatario + Loja Des | Suc.Origen + No. Lote + Remitente + Tienda Rem. + Destinatario + Tiend | Orig.Branch + Lot No. + Sender + Unit Rem. + Recipient + Unit Dest. + | S | - | - | S | 2 | 3 | - | 8567 | 0 |
Ela é utilizada para valor informado x documento dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.
Modelo de query gerado automaticamente com base na estrutura da tabela.
SELECT
DVR_FILIAL,
DVR_FILORI,
DVR_LOTNFC,
DVR_CLIREM,
DVR_LOJREM,
DVR_CLIDES,
DVR_LOJDES,
DVR_SERVIC,
DVR_NUMNFC,
DVR_SERNFC,
DVR_CODPRO,
DVR_CODPAS,
DVR_DESPAS,
DVR_VALOR,
DVR_CODNEG
FROM DVR
WHERE
D_E_L_E_T_ = ' '
AND DVR_FILIAL = 'VALOR'
AND DVR_FILORI = 'VALOR'
AND DVR_LOTNFC = 'VALOR'
AND DVR_CLIREM = 'VALOR'
AND DVR_LOJREM = 'VALOR'
AND DVR_CLIDES = 'VALOR'
AND DVR_LOJDES = 'VALOR'
AND DVR_SERVIC = 'VALOR'
AND DVR_NUMNFC = 'VALOR'
AND DVR_SERNFC = 'VALOR'
AND DVR_CODPRO = 'VALOR'
AND DVR_CODPAS = 'VALOR'
AND DVR_DESPAS = 'VALOR'
AND DVR_VALOR = 0
AND DVR_CODNEG = 'VALOR'