Resposta rápida
- Arquivo físico
CDV+ empresa, ex.:CDV010- Chave única
CDV_FILIAL+CDV_PERIOD+CDV_CODAJU+CDV_LIVRO+CDV_DOC+CDV_SERIE+CDV_CLIFOR+CDV_LOJA+CDV_CFOP+CDV_DESCR+CDV_ID- Compartilhamento
- Exclusivo
- Estrutura
- 32 campos (0 virtuais), 4 índices, 3 gatilhos
Consultar no seu ambiente
Registros da tabelaSQL
SELECT TOP 100 CDV_FILIAL, CDV_PERIOD, CDV_CODAJU, CDV_LIVRO, CDV_DOC, CDV_SERIE
FROM CDV010
WHERE D_E_L_E_T_ = ' '
ORDER BY CDV_FILIAL, CDV_PERIOD, CDV_CODAJU, CDV_LIVRO, CDV_DOC, CDV_SERIE, CDV_CLIFOR, CDV_LOJA, CDV_CFOP, CDV_DESCR, CDV_IDDicionário do seu ambienteSQL
SELECT X3_ORDEM, X3_CAMPO, X3_TITULO, X3_TIPO, X3_TAMANHO, X3_DECIMAL, X3_CONTEXT
FROM SX3010
WHERE X3_ARQUIVO = 'CDV'
AND D_E_L_E_T_ = ' '
ORDER BY X3_ORDEMCom quem CDV se liga
Campos 32
Clique no campo para ver validação, inicializador, combo e gatilhos.
| Campo | Título | Tipo | Tam. | Dec. | Contexto | Picture | F3 | Descrição |
|---|---|---|---|---|---|---|---|---|
| Filial | Caractere | 2 | 0 | Real | — | — | Filial do Sistema | |
| ||||||||
| Per(AAAAMM) | Caractere | 6 | 0 | Real | @! | — | Periodo de apuracao (AAAA | |
| ||||||||
| Cod.Ajuste | Caractere | 8 | 0 | Real | @! | CDY | Cod.Ajuste | |
| ||||||||
| Descrição | Caractere | 254 | 0 | Real | @! | — | Descrição do Ajuste | |
| ||||||||
| Nr. Livro | Caractere | 1 | 0 | Real | @! | — | Numero do Livro | |
| ||||||||
| Valor | Numérico | 14 | 2 | Real | @E 99,999,999,999.99 | — | Valor de referencia | |
| ||||||||
| Numero NF | Caractere | 9 | 0 | Real | @! | — | Numero NF | |
| ||||||||
| Serie | Caractere | 3 | 0 | Real | !!! | — | Serie | |
| ||||||||
| Cli/For | Caractere | 6 | 0 | Real | @! | — | Cli/For | |
| ||||||||
| Loja | Caractere | 2 | 0 | Real | @! | — | Loja | |
| ||||||||
| Apur.Auto | Caractere | 1 | 0 | Real | @! | — | Apur.Auto | |
| ||||||||
| CFOP | Caractere | 5 | 0 | Real | @! | 13 | CFOP | |
| ||||||||
| Num. Item | Caractere | 4 | 0 | Real | @! | — | Número Item | |
| ||||||||
| Seq. Manut | Caractere | 3 | 0 | Real | @! | — | Sequência Manutenção | |
| ||||||||
| Série Doc. | Caractere | 3 | 0 | Real | !!! | — | Série do Documento Fiscal | |
| ||||||||
| Tp movimento | Caractere | 1 | 0 | Real | @! | — | Tipo de Movimento | |
| ||||||||
| Espec. Doc. | Caractere | 5 | 0 | Real | @! | 42 | Espécie Documento | |
| ||||||||
| Formul. Prop | Caractere | 1 | 0 | Real | @! | — | Formulátio Próprio | |
| ||||||||
| Chave | Caractere | 36 | 0 | Real | @! | — | Chave | |
| ||||||||
| Gera NFE | Caractere | 1 | 0 | Real | @! | — | Considera código para NFE | |
| ||||||||
| Campo | Título | Tipo | Tam. | Dec. | Contexto | Picture | F3 | Descrição |
|---|---|---|---|---|---|---|---|---|
| Zera Valor ? | Caractere | 1 | 0 | Real | @! | — | Zera valor do campo 3 | |
| ||||||||
| Reg. Cálculo | Caractere | 6 | 0 | Real | — | F2B | Regra de Cálculo | |
| ||||||||
| Vlr ICMS Out | Numérico | 16 | 2 | Real | @E 9,999,999,999,999.99 | — | Considera Valor ICMS Outr | |
| ||||||||
| Cod Msg Lanc | Caractere | 6 | 0 | Real | — | CJ8 | Cod Msg Lancamento | |
| ||||||||
| Cod Msg Comp | Caractere | 6 | 0 | Real | — | CJ8 | Cod Msg Complementar | |
| ||||||||
| Cod Msg Desc | Caractere | 6 | 0 | Real | — | CJ8 | Cod Msg Descri Reg 0460 | |
| ||||||||
| Op. Base | Caractere | 2 | 0 | Real | @! | — | Opção de Base | |
| ||||||||
| Id Msg CJL | Caractere | 36 | 0 | Real | @! | — | Amarracao Id Msg CDVxCJL | |
| ||||||||
| Op. Aliquota | Caractere | 2 | 0 | Real | @! | — | Opção de Aliquota | |
| ||||||||
| Agrup CodLan | Caractere | 2 | 0 | Real | — | — | Agrupa Cod Lancto | |
| ||||||||
| Tipo Lanc | Caractere | 1 | 0 | Real | — | — | Tipo de Código de Lanc | |
| ||||||||
| Pc. Cod. Lan | Numérico | 6 | 2 | Real | @E 999.99 | — | Perc. utilizado pelo cód. | |
| ||||||||
Nenhum campo corresponde ao filtro.
Índices 4
| Ordem | Chave | Descrição | Nickname | Pesquisa |
|---|---|---|---|---|
1 | CDV_FILIAL+CDV_PERIOD+CDV_CODAJU+CDV_LIVRO+CDV_DOC+CDV_SERIE+CDV_CLIFOR+CDV_LOJA+CDV_CFOP | Per(AAAAMM) + Cod.Ajuste + Nr. Livro + Numero NF + Serie + Cli/For + L | — | S |
2 | CDV_FILIAL+CDV_PERIOD+CDV_LIVRO | Per(AAAAMM) + Nr. Livro | — | S |
3 | CDV_FILIAL+CDV_PERIOD+CDV_CODAJU+CDV_CFOP | Per(AAAAMM) + Cod.Ajuste + CFOP | — | S |
4 | CDV_FILIAL+CDV_TPMOVI+CDV_ESPECI+CDV_FORMUL+CDV_DOC+CDV_SERIE+CDV_CLIFOR+CDV_LOJA+CDV_NUMITE+CDV_SEQ+CDV_CODAJU | Tp movimento + Espec. Doc. + Formul. Prop + Numero NF + Serie + Cli/Fo | — | S |
Gatilhos 3
| Campo | Seq. | Contradomínio | Tipo | Regra | Alias | Chave de busca | Condição |
|---|---|---|---|---|---|---|---|
CDV_CODAJU | 001 | CDV_NFE | P | Posicione("CDY", 1, xFilial("CDY")+M->CDV_CODAJU, "CDY_NFE") | — | — | !EMPTY(M->CDV_CODAJU) |
CDV_CODAJU | 002 | CDV_ZERAVL | P | Posicione("CDY", 1, xFilial("CDY")+M->CDV_CODAJU, "CDY_ZERAVL") | — | — | !EMPTY(M->CDV_CODAJU) |
CDV_CODAJU | 003 | CDV_DESCR | P | substr(getDescCDY(M->CDV_CODAJU),1,254) | — | — | !EMPTY(M->CDV_CODAJU) |
Procedência
Dicionário padrão do Protheus 12.1.2510, como a TOTVS distribui, sem customização de ambiente.