Passagem em Postos
A tabela DEP faz parte do sistema ERP Protheus da TOTVS e é utilizada para passagem em postos.
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 DEP 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 DEP, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DEP |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DEP990 |
| X2_NOME | Passagem em Postos |
| X2_NOMESPA | Pasaje en Gasolinera |
| X2_NOMEENG | Passage in Gas Stations |
| 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 | DEP_FILIAL+DEP_FILORI+DEP_VIAGEM+DEP_ORDEM |
| 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_ | 3196 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DEP | 01 | DEP_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del Sistema | System branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49568 | 0 |
| DEP | 02 | DEP_ORDEM | C | 3 | 0 | Prdem Pass. | Orden Pas. | Passage orde | Ordem da Passagem | Orden del pasaje | Passage order | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49569 | 0 |
| DEP | 03 | DEP_FILORI | C | 2 | 0 | Fil. Origem | Suc. Origen | Origin Br. | Filial de Origem | Sucursal de origen | Origin Branch | - | - | x x x x x x xx x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49570 | 0 |
| DEP | 04 | DEP_VIAGEM | C | 6 | 0 | Viagem | Viaje | Trip | Numero da Viagem | Numero de viaje | Trip Number | - | ExistCPO('DTQ',M->(DEP_FILORI+DEP_VIAGEM)) | x x x x x x xx x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 143 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49571 | 0 |
| DEP | 05 | DEP_CODOPE | C | 2 | 0 | Cod. Operad. | Cod. Operad. | Operat.Code | Codigo da Operadora | Codigo de la Operadora | Operator Code | @! | TMSVALFIELD("M->DEP_CODOPE",.T.,"DEP_NOMOPE") | x x x x x x xx x x x x x x x x | - | DEG | 1 | x xxx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49572 | 0 |
| DEP | 06 | DEP_NOMOPE | C | 30 | 0 | Nome Operad. | Nombre Opera | Operat. Name | Nome da Operadora | Nombre de la Operadora | Operator Name | @! | - | x x x x x x xx x x x x x x x x | IF(!INCLUI,TMSVALFIELD("DEP->DEP_CODOPE",.F.,"DEP_NOMOPE"),"") | - | 1 | x xx | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49573 | 0 |
| DEP | 07 | DEP_CODFOR | C | 6 | 0 | Fornecedor | Proveedor | Vendor | Codigo do Fornecedor | Codigo del proveedor | Vendor Code | @! | ExistCPO('SA2',M->DEP_CODFOR) | x x x x x x xx x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49574 | 0 |
| DEP | 08 | DEP_LOJFOR | C | 2 | 0 | Loja | Tienda | Store | Loja do Fornecedor | Tienda del proveedor | Vendor Store | @! | ExistCPO('SA2',M->(DEP_CODFOR+DEP_LOJFOR)) | x x x x x x xx x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49575 | 0 |
| DEP | 09 | DEP_NOMFOR | C | 50 | 0 | Nome Fornec. | Nombre Prov. | Vendor Name | Nome do Fornecedor | Nombre del proveedor | Vendor Name | @! | - | x x x x x x xx x x x x x x x x | If(!INCLUI, POSICIONE('SA2',1,XFILIAL('SA2')+DEP->(DEP_CODFOR+DEP_LOJFOR),'A2_NOME'), '') | - | 1 | x xx | - | - | - | S | V | V | - | - | - | - | - | - | - | POSICIONE('SA2',1,XFILIAL('SA2')+DEP->(DEP_CODFOR+DEP_LOJFOR),'A2_NOME') | 177 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49576 | 0 |
| DEP | 10 | DEP_DTPREV | D | 8 | 0 | Dt.Prev.Pass | Fc.Prev.Pas. | Pass.Est.Dt. | Dt. Previsao da Passagem | Fch. Prevision del pasaje | Passage estimated date | @D | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49577 | 0 |
| DEP | 11 | DEP_HRPREV | C | 4 | 0 | Hr.Prev.Pass | Hr.Prev.Pas. | Pass.Est.Tm. | Hr. Previsao da Passagem | Hr. Prevision del pasaje | Passage estimated time | @R 99:99 | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49578 | 0 |
| DEP | 12 | DEP_DTREAL | D | 8 | 0 | Dt.Real.Pass | Fc.Real.Pas. | Pass.Act.Dt. | Dt. Real da Passagem | Fch. Real del pasaje | Passage actual date | @D | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49579 | 0 |
| DEP | 13 | DEP_HRREAL | C | 4 | 0 | Hr.Real Pass | Hr.Real Pas. | Pass.Act.Tm. | Hr. Real da Passagem | Hr. Real del pasaje | Passage actual time | @R 99:99 | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49580 | 0 |
| DEP | 14 | DEP_VALCON | N | 14 | 2 | Val. Consumo | Val. Consumo | Val. Consum. | Valor Consumo | Valor consumo | Value of Consumption | @E 999,999,999.99 | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49581 | 0 |
| DEP | 15 | DEP_VALSAQ | N | 14 | 2 | Val. Saque | Val. Retiro | Withd Amt | Valor Saque | Valor retiro | Withdrawal Amount | @E 999,999,999.99 | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49582 | 0 |
| DEP | 16 | DEP_VALCOM | N | 14 | 2 | Val.Combust. | Val. Combus. | Val.Fuel | Valor Combustivel | Valor combustible | Value of Fuel | @E 999,999,999.99 | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49583 | 0 |
| DEP | 17 | DEP_PRVCON | D | 8 | 0 | Prev.Pg.Cons | Prev.Pg.Cons | Cons Pt Fore | Previsao Pagto. Consumo | Prevision pago consumo | Consumption Payt Forecast | @D | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49584 | 0 |
| DEP | 18 | DEP_PRVSAQ | D | 8 | 0 | Prev.Pag.Con | Prev.Pag.Con | Con Pyt Fore | Previsao Pagto. Consumo | Prevision pago consumo | Consumption Payt Forecast | @D | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49585 | 0 |
| DEP | 19 | DEP_DOCPAS | C | 9 | 0 | Doc. Passag. | Doc. Pasaje | Pass. doc. | Documento Relac. Passagem | Documento Relac. Pasaje | Passage rel. document | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49586 | 0 |
| DEP | 20 | DEP_STATUS | C | 1 | 0 | Status | Estatus | Status | Status da Passagem | Estatus del pasaje | Passage status | ! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | 1=Em Aberto;2=Realizada | 1=Pendiente;2=Realizado | 1=Pending;2=Executed | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49587 | 0 |
| DEP | 21 | DEP_SEQDTW | C | 6 | 0 | Sequenc. DTW | Secuenc. DTW | DTW sequence | Sequencia Relac. no DTW | Secuencia Relac. en DTW | Rel. sequence in DTW | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49588 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DEP | 1 | DEP_FILIAL+DEP_FILORI+DEP_VIAGEM+DEP_ORDEM | Fil. Origem + Viagem + Prdem Pass. | Suc. Origen + Viaje + Orden Pas. | Origin Br. + Trip + Passage orde | S | - | - | S | 2 | 3 | - | 7671 | 0 |
Ela é utilizada para passagem em postos 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
DEP_FILIAL,
DEP_ORDEM,
DEP_FILORI,
DEP_VIAGEM,
DEP_CODOPE,
DEP_NOMOPE,
DEP_CODFOR,
DEP_LOJFOR,
DEP_NOMFOR,
DEP_DTPREV,
DEP_HRPREV,
DEP_DTREAL,
DEP_HRREAL,
DEP_VALCON,
DEP_VALSAQ,
DEP_VALCOM,
DEP_PRVCON,
DEP_PRVSAQ,
DEP_DOCPAS,
DEP_STATUS,
DEP_SEQDTW
FROM DEP
WHERE
D_E_L_E_T_ = ' '
AND DEP_FILIAL = 'VALOR'
AND DEP_ORDEM = 'VALOR'
AND DEP_FILORI = 'VALOR'
AND DEP_VIAGEM = 'VALOR'
AND DEP_CODOPE = 'VALOR'
AND DEP_NOMOPE = 'VALOR'
AND DEP_CODFOR = 'VALOR'
AND DEP_LOJFOR = 'VALOR'
AND DEP_NOMFOR = 'VALOR'
AND DEP_DTPREV BETWEEN '20260501' AND '20260531'
AND DEP_HRPREV = 'VALOR'
AND DEP_DTREAL BETWEEN '20260501' AND '20260531'
AND DEP_HRREAL = 'VALOR'
AND DEP_VALCON = 0
AND DEP_VALSAQ = 0
AND DEP_VALCOM = 0
AND DEP_PRVCON BETWEEN '20260501' AND '20260531'
AND DEP_PRVSAQ BETWEEN '20260501' AND '20260531'
AND DEP_DOCPAS = 'VALOR'
AND DEP_STATUS = 'VALOR'
AND DEP_SEQDTW = 'VALOR'