Componentes de Preco
A tabela NK7 faz parte do sistema ERP Protheus da TOTVS e é utilizada para componentes de preco.
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 NK7 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 NK7, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | NK7 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | NK7990 |
| X2_NOME | Componentes de Preco |
| X2_NOMESPA | Componentes de Precio |
| X2_NOMEENG | Price Components |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | C |
| X2_MODOEMP | C |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | NK7_FILIAL+NK7_CODCOM |
| X2_PYME | S |
| X2_MODULO | 67 |
| X2_DISPLAY | - |
| 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_ | 6799 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NK7 | 01 | NK7_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial | Sucursal | Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108300 | 0 |
| NK7 | 02 | NK7_CODCOM | C | 6 | 0 | Codigo | Codigo | Code | Código do Componente | Codigo del Componente | Component Code | @! | ExistChav('NK7',M->NK7_CODCOM) | x x x x x x x x x x x x x x x x | GetSXENum('NK7','NK7_CODCOM') | - | 1 | xxx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 108301 | 0 |
| NK7 | 03 | NK7_ORDEM | N | 3 | 0 | Ordem | Orden | Order | Ordem dos Componentes | Orden de los componentes | Components Order | @E 999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 108302 | 0 |
| NK7 | 04 | NK7_DESCRI | C | 30 | 0 | Descricao | Descripcion | Description | Descricao do Componente | Descripcion de Componente | Component Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 108303 | 0 |
| NK7 | 05 | NK7_ATIVO | C | 1 | 0 | Ativo? | ¿Activo? | Active? | Status do Componente | Estatus del Componente | Component Status | @! | Pertence('S/N') | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | - | - | - | - | S=Sim;N=Nao | S=Si;N=No | Y=Yes;N=No | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 108304 | 0 |
| NK7 | 06 | NK7_APLICA | C | 1 | 0 | Aplicacao | Aplicacion | Application | Aplicacao do Componente | Aplicacion del Componente | Component Application | @! | Pertence('C/V/A') | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | - | - | - | - | C=Compra;V=Venda;A=Ambos | C=Compra;V=Venta;A=Ambos | P=Purchase;S=Sale;B=Both | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 108305 | 0 |
| NK7 | 07 | NK7_CALCUL | C | 1 | 0 | Calculo | Cálculo | Calculation | Tipo de Calculo | Tipo de cálculo | Calculation Type | @! | Pertence('P/C/I/R/T/M') .AND. OGA410WH() | x x x x x x x x x x x x x x x x | 'P' | - | 1 | x xxx | - | S | - | S | - | - | - | - | P=Preco;C=Custo;I=Informativo;R=Resultado;T=Tributo;M=Multa | P=Precio;C=Costo;I=Informativo;R=Resultado;T=Tributo;M=Multa | P=Price;C=Cost;I=Informative;R=Result;T=Tax;M=Fine | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 108306 | 0 |
| NK7 | 08 | NK7_UTILIZ | C | 1 | 0 | Utilizacao | Utilizacion | Usage | Utilização | Utilizacion | Usage | @! | Pertence('N/M') | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | N=Normal;M=Margem | N=Normal;M=Margen | N=Normal;M=Margin | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 108307 | 0 |
| NK7 | 09 | NK7_GERFIN | C | 1 | 0 | Gera Fina? | ¿Genera Fina | Gen fin? | Gera Financeiro? | ¿Genera financiero? | Generate financial? | @! | Pertence("1/2/3/4") | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | 1=Nao;2=Compra;3=Venda;4=Ambos | 1=No;2=Compra;3=Venta;4=Ambos | 1=No;2=Purchase;3=Sale;4=Both | - | - | "1" | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108308 | 0 |
| NK7 | 10 | NK7_PRCMAR | N | 6 | 2 | %Margem | %Margen | %Margin | Margem | Margen | Margin | @E 999.99 | POSITIVO() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108309 | 0 |
| NK7 | 11 | NK7_REGRA | C | 130 | 0 | Regra | Regla | Rule | Regra uso Componente | Regla uso componente | Rule Component use | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 108310 | 0 |
| NK7 | 12 | NK7_ALTERA | C | 1 | 0 | Altera Valor | Modif. Valor | Edit Value | Permite Alterar Valor | Permite modificar valor | Allow Editing Value | @! | Pertence('0/1') | x x x x x x x x x x x x x x x x | '0' | - | 1 | x xx | - | - | - | N | A | R | - | - | 0=Sim;1=Nao | 0=Sí;1=No | 0=Yes;1=No | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108311 | 0 |
| NK7 | 13 | NK7_DESABR | C | 10 | 0 | Abreviatura | Abreviatura | Abbreviation | Descrição Abreviada | Descripción abreviada | Short Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 108312 | 0 |
| NK7 | 14 | NK7_FIXAVE | C | 1 | 0 | Exibe Painel | Muestra pane | Show panel | Exibe no Painel Fixação | Muestra panel fijación | Show fixing panel | @9 | Pertence('0/1') | x x x x x x x x x x x x x x x x | '0' | - | 1 | x xxx | - | - | - | N | A | R | - | - | 0=Sim;1=Não | 0=Sí;1=No | 0=Yes;1=No | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 108313 | 0 |
| NK7 | 15 | NK7_TIPPRC | C | 1 | 0 | Tipo Preço | Tipo Precio | Price Type | Tipo Preço | Tipo Precio | Price Type | @! | Pertence('1/2/3/4') | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | N | A | R | - | - | 1=Preco Calculado;2=Preco Negociado;3=Preco Demonstrativo;4=Preco de Faturamento | 1=Precio Calculado;2=Precio Negociado;3=Precio Demostrativo;4=Precio de facturación | 1=Calc Price;2=Negot Price;3=Statem Price;4=Billing Price | - | M->NK7_CALCUL=='R' | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108314 | 0 |
| NK7 | 16 | NK7_TRIBUT | C | 8 | 0 | Tributo | Tributo | Tax | Tributo | Tributo | Tax | @! | OGA410CPO() | x x x x x x x x x x x x x x x x | - | N88 | 1 | x xx | - | S | - | - | A | R | - | - | - | - | - | - | M->NK7_CALCUL=='T' | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108315 | 0 |
| NK7 | 17 | NK7_DESCTR | C | 254 | 0 | Des. Tributo | Des. Tributo | Tax des | Descrição do Tributo | Descripción del tributo | Tax description | @! | - | x x x x x x x x x x x x x x x x | If(!inclui, Posicione('N88',1,xFilial('N88')+NK7->NK7_TRIBUT, 'N88_DESCRI')," ") | - | 1 | x xx | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108316 | 0 |
| NK7 | 18 | NK7_PAUTA | C | 1 | 0 | Util. Pauta | Util. Tarifa | Uses tariff | Utiliza Pauta | Utiliza tarifa | Uses tariff | @! | Pertence('0/1') | x x x x x x x x x x x x x x x | - | - | 1 | xx x | - | - | - | - | A | R | - | - | 0=Sim;1=Nao | 0=Sí;1=No | 0=Yes;1=No | - | M->NK7_CALCUL=='T' .AND. M->NK7_TRIBUT =='ICMS ' | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108317 | 0 |
| NK7 | 19 | NK7_COMPRE | C | 1 | 0 | Compõe Preço | Compon Preci | Comp Price | Compõe Preço | Compone Precio | Compound Price | @! | Pertence('0/1') | x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | A | R | - | - | 0=Sim;1=Não | 0=Sí;1=No | 0=Yes;1=No | - | M->NK7_CALCUL=='T' | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108318 | 0 |
| NK7 | 20 | NK7_HEDGE | C | 1 | 0 | H. Ctr Fixo | H. Ctr Fijo | H ctr fixed? | Hedge Contrato Fixo? | ¿Hedge contrato fijo? | Hedge contr fixed? | @! | Pertence("0|1|2") | x x x x x x x x x x x x x x x x | '0' | - | 1 | xxxx | - | - | - | S | A | R | - | - | 0=Não Utiliza;1=Sim; 2=Não | 0=No utiliza;1=Sí; 2=No | 0=Does not use;1=Yes;2=No | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108319 | 0 |
| NK7 | 21 | NK7_FHEDGE | C | 1 | 0 | H. Ctr À Fix | H. Ctr por f | H ctr to fix | Hedge Contrato à Fixar? | ¿Hedge Contrato por fijar | Hedge contr to fix? | @! | PERTENCE('0|1|2') | x x x x x x x x x x x x x x x x | '0' | - | 1 | xxxxxx | - | - | - | N | A | R | - | - | 0=Não Utiliza;1=Sim;2=Não | 0=No utiliza;1=Sí;2=No | 0=Does not use;1=Yes;2=No | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108320 | 0 |
| NK7 | 22 | NK7_GERMUL | C | 1 | 0 | Gera Multa? | ¿Genera Mul? | Gen Penalty? | Tipo Multa a Gerar | Tipo multa por generar | Penalty Tp to generate | @9 | Pertence('1/2') | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | N | A | R | - | - | 1=Titulo A Pagar;2=Titulo A Receber | 1=Título por pagar;2=Título por cobrar | 1=Bill Payable;2=Bill Receivable | - | M->NK7_CALCUL=='M' | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108321 | 0 |
| NK7 | 23 | NK7_MPREFI | C | 3 | 0 | Prefixo Tit. | Prefijo Tít. | Bill Prefix | Prefixo do Título | Prefijo del título | Bill Prefix | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | N | A | R | - | - | - | - | - | - | OGA410WH3() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108322 | 0 |
| NK7 | 24 | NK7_MTIPO | C | 3 | 0 | Tipo Tit. | Tipo Tít. | Bill Type | Tipo do Título | Tipo del título | Bill Type | @! | ExistCpo('SX5','05'+M->NK7_MTIPO) | x x x x x x x x x x x x x x x x | - | 05 | 1 | xxxx x | - | - | - | N | A | R | - | - | - | - | - | - | OGA410WH3() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108323 | 0 |
| NK7 | 25 | NK7_MNATUR | C | 10 | 0 | Natureza Tit | Modalidad Tí | Bill Nature | Natureza do Título | Modalidad del título | Bill Modality | @! | ExistCpo("SED", M->NK7_MNATUR) .AND. OGA410NAT(FwFldGet("NK7_MNATUR")) .OR. Vazio() | x x x x x x x x x x x x x x x x | - | SED | 1 | xxxx x | - | - | - | N | A | R | - | - | - | - | - | - | OGA410WH3() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108324 | 0 |
| NK7 | 26 | NK7_BOLSA | C | 1 | 0 | Bolsa | Bolsa | Bag | Componente de Bolsa? | ¿Componente de bolsa? | Bag Component? | @! | - | x x x x x x x x x x x x x x x x | "0" | - | 1 | xxxxxx | - | - | - | N | A | R | - | - | 0=Não;1=Sim | 0=No;1=Si | 0=No;1=Yes | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108325 | 0 |
| NK7 | 27 | NK7_PLVEND | C | 1 | 0 | Plano Vendas | Plan ventas | Sales Plan | Plano de Vendas | Plan de ventas | Sales Plan | @! | Pertence("1/2/3") | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | A | R | - | - | 1=Não utilizado;2=Utilizado;3=Exclusivo | 1=No utilizado;2=Utilizado;3=Exclusivo | 1=Not used;2=Used;3=Exclusive | - | M->NK7_APLICA=='V' .Or. M->NK7_APLICA=='A' | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108326 | 0 |
| NK7 | 28 | NK7_FLUIG | C | 1 | 0 | Fluig | Fluig | Fluig | Comp. Referente ao Fluig | Comp. Referente al Fluig | Comp referring to Fluig | @! | - | x x x x x x x x x x x x x x x | "0" | - | 1 | xxxxxx | - | - | - | N | A | R | - | - | 0=Não se aplica;1=Bolsa;2=Basis;3=Prêmio | 0=No se aplica;1=Beca;2=Basis;3=Premio | 0=Not applicable;1=Stock;2=Basis;3=Premium | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108327 | 0 |
| NK7 | 29 | NK7_ALCADA | C | 1 | 0 | Ger. Aprov.? | Ger. Aprob | Gen. Appr.? | Gerar aprovação de alçada | Generar aprobación de per | Generate jurisdiction app | @! | Pertence("0/1") | x x x x x x x x x x x x x x x x | '1' | - | 1 | x x xx x | - | - | - | N | A | R | - | - | 0=Não;1=Sim | 0=No;1=Sí | 0=No;1=Yes | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 108328 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NK7 | 1 | NK7_FILIAL+NK7_CODCOM | Codigo | Codigo | Code | S | - | - | S | 2 | 3 | - | 15521 | 0 |
Ela é utilizada para componentes de preco 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.