Tabela DL7 - Contrato de Demandas
Rotina (SysObj): TMSA153
Chave Unica: DL7_FILIAL + DL7_COD
Modo: C
Modo Unid.: C
Modo Empr.: C
Sumario:
Campos
| Campo | Titulo | Descricao | Tipo | Contexto | Tamanho |
|---|---|---|---|---|---|
| DL7_FILIAL | Filial | Filial do sistema | C | Real | 2 |
| DL7_COD | Ctr Demandas | Contrato de Demandas | C | Real | 8 |
| DL7_CLIDEV | Devedor | Devedor | C | Real | 6 |
| DL7_LOJDEV | Loja Devedor | Loja Devedor | C | Real | 2 |
| DL7_NOMDEV | Nome Devedor | Nome Devedor | C | Virtual | 50 |
| DL7_ABRANG | Abrangencia | Abrangencia | C | Real | 1 |
| DL7_TIPCTR | Tip.Contrato | Tipo Contr. Demandas | C | Real | 2 |
| DL7_NOMTIP | Descr.Tip | Descricao Tipo Contrato | C | Virtual | 30 |
| DL7_INIVIG | Ini.Vigencia | Data Inicio Vigencia | D | Real | 8 |
| DL7_FIMVIG | Fim Vigencia | Data Fim Vigencia | D | Real | 8 |
| DL7_UM | Unidade | Unidade de Medida | C | Real | 1 |
| DL7_META | Meta Detalh. | Utiliza Meta Detalhada | C | Real | 1 |
| DL7_STATUS | Status | Status | C | Real | 1 |
| DL7_RECUSA | Ctrl Rec Cli | Controla Recusa Cliente? | C | Real | 1 |
| DL7_QTDTOT | Qtd Total | Quantidade Total | N | Real | 14, 4 |
| DL7_QTDSLD | Qtd Saldo | Quantidade Saldo | N | Virtual | 14, 4 |
| DL7_QTDDEX | Qtd Dem Ext | Qtd Demanda Extra | N | Virtual | 14, 4 |
| DL7_QTDDEM | Qtd Demandas | Quantidade de Demandas | N | Real | 14, 4 |
| DL7_QTDPLN | Qtd Planejam | Quantidade Planejada | N | Real | 14, 4 |
| DL7_QTDPRG | Qtd Program. | Qtd de Programacao | N | Real | 14, 4 |
| DL7_QTDVIA | Qtd Viagem | Quantidade de Viagem | N | Real | 14, 4 |
| DL7_QTDBLQ | Qtd Bloquead | Quantidade Bloqueada | N | Real | 14, 4 |
| DL7_QTDREC | Qtd Recusada | Quantidade Recusada | N | Real | 14, 4 |
| DL7_QTDRCL | Qtd Rec. Cli | Qtd Recusada Cliente | N | Real | 14, 4 |
| DL7_QTDREP | Qtd Reproces | Quantidade em Reprocesso | N | Real | 14, 4 |
| DL7_QTDCAN | Qtd Cancelad | Quantidade Cancelada | N | Real | 14, 4 |
| DL7_QTDENC | Qtd Encerrad | Quantidade Encerrada | N | Real | 14, 4 |
Indices
| Ordem | Chave | Descricao | Nickname |
|---|---|---|---|
| 1 | DL7_FILIAL + DL7_COD | Ctr Demandas | |
| 2 | DL7_FILIAL + DL7_CLIDEV + DL7_LOJDEV | Devedor + Loja Devedor |
Relacionamentos
| Tabela Origem | Tabela Destino | Expressao Origem | Expressao Destino | Relacionamento |
|---|---|---|---|---|
| DL7 (Contrato de Demandas) | DL8 (DEMANDAS) | DL7_COD | DL8_CRTDMD | 1 para N |
| DL7 (Contrato de Demandas) | DL8 (DEMANDAS) | DL7_FILIAL + DL7_COD | DL8_FILIAL + DL8_CRTDMD | 1 para N |
| DL7 (Contrato de Demandas) | DLE (Contrato x Grupo Reg. Demanda) | DL7_COD | DLE_CRTDMD | 1 para N |
| DL7 (Contrato de Demandas) | DLM (Reg. Orig. Contrato de demanda) | DL7_COD | DLM_CRTDMD | 1 para N |
| SA1 (Clientes) | DL7 (Contrato de Demandas) | A1_COD + A1_LOJA | DL7_CLIDEV + DL7_LOJDEV | 1 para 1 |
| SX5 (Tabelas) | DL7 (Contrato de Demandas) | X5_TABELA + X5_CHAVE | 'NW' + DL7_TIPCTR | 1 para N |