Histórico Rentabilidade Frete
A tabela DL3 faz parte do sistema ERP Protheus da TOTVS e é utilizada para histórico rentabilidade frete.
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 DL3 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 DL3, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DL3 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DL3990 |
| X2_NOME | Histórico Rentabilidade Frete |
| X2_NOMESPA | Historial rentabilidad flete |
| X2_NOMEENG | Freight Profitability History |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | C |
| X2_MODOEMP | C |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DL3_FILIAL+DL3_NUMSIM |
| X2_PYME | N |
| X2_MODULO | 43 |
| X2_DISPLAY | - |
| X2_SYSOBJ | TMSAO45 |
| X2_USROBJ | - |
| X2_POSLGT | 2 |
| 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_ | 3385 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DL3 | 01 | DL3_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 | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52209 | 0 |
| DL3 | 02 | DL3_NUMSIM | C | 6 | 0 | Cód. Simula | Cód. Simul. | Simulat Code | Código da Simulação | Código de la simulación | Simulation Code | @! | ExistChav("DL3") | x x x x x x x x x x x x x x x xx | - | - | 1 | x x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52210 | 0 |
| DL3 | 03 | DL3_FILORI | C | 2 | 0 | Filial Orige | Sucursal Ori | Origin Branc | Filial de Origem | Sucursal de origen | Origin Branch | - | - | x x x x x x x x x x x x x x x x | - | DTQ1 | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52211 | 0 |
| DL3 | 04 | DL3_VIAGEM | C | 6 | 0 | Viagem | Viaje | Trip | Viagem | Viaje | Trip | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 143 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52212 | 0 |
| DL3 | 05 | DL3_VLRRCT | N | 14 | 2 | Vlr. Receita | Val. Ingreso | Revenue Vl | Valor Receita | Valor ingreso | Revenue Value | @E 99,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52213 | 0 |
| DL3 | 06 | DL3_VLRTMS | N | 14 | 2 | Vlr. Pag TMS | Val. Pag TMS | TMS Pay Vl | Valor a Pagar TMS | Valor por pagar TMS | TMS Payable Value | @E 99,999,999,999.99 | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52214 | 0 |
| DL3 | 07 | DL3_VLRGFE | N | 14 | 2 | Vlr. Pag GFE | Val. Pag GFE | GFE Pay Vl | Valor a Pagar GFE | Valor por pagar GFE | GFE Payable Value | @E 99,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52215 | 0 |
| DL3 | 08 | DL3_VLRTOT | N | 14 | 2 | Vlr Pag Tot | Val Pag Tot | Total Value | Valor Frete a Pagar Total | Valor flete p pagar total | Total Payable Freigth Val | @E 99,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52216 | 0 |
| DL3 | 09 | DL3_RENTAB | N | 14 | 2 | % Rentabilid | % Rentabilid | % Profit | % Rentabilidade | % Rentabilidad | %Profitability | @E 99,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52217 | 0 |
| DL3 | 10 | DL3_TABFRE | C | 4 | 0 | Tab. Frete | Tab. Flete | Freight Tabl | Tabela de Frete a Pagar | Tabla de flete por pagar | Freight Table Payable | @! | ExistChave("DTL") | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52218 | 0 |
| DL3 | 11 | DL3_TIPTAB | C | 2 | 0 | Tipo Tabela | Tipo tabla | Table Type | Tipo da Tabela | Tipo de la tabla | Table Type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52219 | 0 |
| DL3 | 12 | DL3_TABCAR | C | 4 | 0 | Tab. Carret | Tab. Transp. | Teamster Tab | Tabela de Carreteiro | Tabla de transportista | Teamster Table | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52220 | 0 |
| DL3 | 13 | DL3_CODNEG | C | 2 | 0 | Negociação | Negociación | Business | Código da Negociação | Código de la negociación | Business Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52221 | 0 |
| DL3 | 14 | DL3_PERCUS | N | 4 | 1 | Perc. Custo | Porc. Costo | Cost Percent | Percentual de Custo | Porcentaje de costo | Cost Percentage | @E 99.9 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52222 | 0 |
| DL3 | 15 | DL3_SERVIC | C | 14 | 0 | Cod. Serviço | Cód. Servic. | Serv Code | Código do Serviço | Código del servicio | Service Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52223 | 0 |
| DL3 | 16 | DL3_OBSERV | M | 30 | 0 | Observação | Observación | Note | Observação | Observación | Note | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52224 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DL3 | 1 | DL3_FILIAL+DL3_NUMSIM+DL3_FILORI+DL3_VIAGEM | Cód. Simula + Filial Orige + Viagem | Cód. Simul. + Sucursal Ori + Viaje | Simulat Code + Origin Branc + Trip | S | - | - | S | 2 | 3 | - | 8044 | 0 |
| DL3 | 2 | DL3_FILIAL+DL3_FILORI+DL3_VIAGEM+DL3_NUMSIM | Filial Orige + Viagem + Cód. Simula | Sucursal Ori + Viaje + Cód. Simul. | Origin Branc + Trip + Simulat Code | S | - | - | S | 2 | 3 | - | 8045 | 0 |
Ela é utilizada para histórico rentabilidade frete 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
DL3_FILIAL,
DL3_NUMSIM,
DL3_FILORI,
DL3_VIAGEM,
DL3_VLRRCT,
DL3_VLRTMS,
DL3_VLRGFE,
DL3_VLRTOT,
DL3_RENTAB,
DL3_TABFRE,
DL3_TIPTAB,
DL3_TABCAR,
DL3_CODNEG,
DL3_PERCUS,
DL3_SERVIC,
DL3_OBSERV
FROM DL3
WHERE
D_E_L_E_T_ = ' '
AND DL3_FILIAL = 'VALOR'
AND DL3_NUMSIM = 'VALOR'
AND DL3_FILORI = 'VALOR'
AND DL3_VIAGEM = 'VALOR'
AND DL3_VLRRCT = 0
AND DL3_VLRTMS = 0
AND DL3_VLRGFE = 0
AND DL3_VLRTOT = 0
AND DL3_RENTAB = 0
AND DL3_TABFRE = 'VALOR'
AND DL3_TIPTAB = 'VALOR'
AND DL3_TABCAR = 'VALOR'
AND DL3_CODNEG = 'VALOR'
AND DL3_PERCUS = 0
AND DL3_SERVIC = 'VALOR'