Regras de Negociação
A tabela SK2 faz parte do sistema ERP Protheus da TOTVS e é utilizada para regras de negociação.
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 SK2 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 SK2, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | SK2 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | SK2990 |
| X2_NOME | Regras de Negociação |
| X2_NOMESPA | Reglas de Negociación |
| X2_NOMEENG | Negotiation Rules |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | K2_FILIAL+K2_REGNEG |
| X2_PYME | S |
| X2_MODULO | 13 |
| X2_DISPLAY | K2_REGNEG+K2_DESC |
| 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_ | 8360 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SK2 | 01 | K2_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 | - | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 136745 | 0 |
| SK2 | 02 | K2_REGNEG | C | 6 | 0 | Código | Codigo | Code | Código Regra Negociação | Cod. regla negociacion | Negotiation Rule Code | 999999 | - | x x x x x x x x x x x x x x x x x | IIF(INCLUI,GETSXENUM("SK2","K2_REGNEG"),SK2->K2_REGNEG) | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136746 | 0 |
| SK2 | 03 | K2_DESC | C | 30 | 0 | Descrição | Descripcion | Description | Descrição da regra de cob | Descrip.de regla de cobr. | Cover.Rule Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 136747 | 0 |
| SK2 | 04 | K2_DIAREAG | N | 6 | 0 | Reagendar | Remarcar | Reschedule | Dias para reagendamento | Dias para remarcar | Days for Rescheduling | @E 999,999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 136748 | 0 |
| SK2 | 05 | K2_ALTTIT | C | 1 | 0 | Titulo | Titulo | Bill | Altera Título Sim/Não | Modifica Titulo Si/No | Change Bill Yes/No | @! | Vazio() .OR. Pertence("12") | x x x x x x x x x x x x x x x x | IIF(!INCLUI,"1","") | - | 1 | x x | - | - | - | N | A | R | - | - | 1=Altera;2=Näo Altera | 1=Modifica;2=No Modifica | 1=Change;2=Do Not Change | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136749 | 0 |
| SK2 | 06 | K2_DIAPROR | N | 6 | 0 | Prorrogacäo | Prorroga | Extension | Dias max para prorrogação | Dias max.para prorroga | Max.Days for Extension | @E 999,999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 136750 | 0 |
| SK2 | 07 | K2_CREDITO | C | 1 | 0 | Credito | Credito | Credit | Manipula Crédito S/N | Manipula Credito S/N | Manipulate Credit Y/N | @! | Vazio() .OR. Pertence("12") | x x x x x x x x x x x x x x x x | IIF(!INCLUI,"1","") | - | 1 | x x | - | - | - | N | A | R | - | - | 1=Altera;2=Visualiza | 1=Modifica;2=Visualiza | 1=Change;2=View | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136751 | 0 |
| SK2 | 08 | K2_DIADESC | N | 6 | 0 | Prz Desconto | Descuento | Discount | Dias max para desconto | Dias max.para descuento | Max.Days for Discount | @E 999,999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 136752 | 0 |
| SK2 | 09 | K2_DSCNOM | N | 5 | 2 | Desc Nominal | Desc Nominal | Nom.Disc. | Deconto Nominal | Descuento Nominal | Nominal Discount | @E 99.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 136753 | 0 |
| SK2 | 10 | K2_DSCJUR | N | 5 | 2 | Desc Juros | Desc Interes | Inter.Disc. | Desconto dos Juros | Descuento de Intereses | Interest Discount | @E 99.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 136754 | 0 |
| SK2 | 11 | K2_SELTIT | C | 1 | 0 | Selecäo | Seleccion | Selection | Seleciona Titulo S/N | Selecciona Titulo S/N | Choose Bill Y/N | @! | Vazio() .OR. Pertence("12") | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | 1=Automatico;2=Manual | 1=Automatico;2=Manual | 1=Automatic;2=Manual | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 136755 | 0 |
| SK2 | 12 | K2_ACRESC | N | 5 | 2 | Acrescimo | Aumento | Increase | % de acrescimo | % de aumento | Increase % | @E 99.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 136756 | 0 |
| SK2 | 13 | K2_DECRES | N | 5 | 2 | Decrescimo | Descuento | Decrease | % de decrescimo | % de descuento | Decrease % | @E 99.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 136757 | 0 |
| SK2 | 14 | K2_LIQUIDA | C | 1 | 0 | Liquidação | Liquidacion | Liquidation | Habilita Liquidação | Habilita liquidacion | Enable Liquidation | @! | - | x x x x x x x x x x x x x x x x | IIf ( INCLUI, "2", "" ) | - | 1 | xxx | - | - | - | - | A | R | - | - | 1=Sim;2=Não | 1=Si;2=No | 1=Yes;2=No | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 136758 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SK2 | 1 | K2_FILIAL+K2_REGNEG | Código | Codigo | Code | S | - | - | S | 2 | 3 | - | 19682 | 0 |
Ela é utilizada para regras de negociação 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
K2_FILIAL,
K2_REGNEG,
K2_DESC,
K2_DIAREAG,
K2_ALTTIT,
K2_DIAPROR,
K2_CREDITO,
K2_DIADESC,
K2_DSCNOM,
K2_DSCJUR,
K2_SELTIT,
K2_ACRESC,
K2_DECRES,
K2_LIQUIDA
FROM SK2
WHERE
D_E_L_E_T_ = ' '
AND K2_FILIAL = 'VALOR'
AND K2_REGNEG = 'VALOR'
AND K2_DESC = 'VALOR'
AND K2_DIAREAG = 0
AND K2_ALTTIT = 'VALOR'
AND K2_DIAPROR = 0
AND K2_CREDITO = 'VALOR'
AND K2_DIADESC = 0
AND K2_DSCNOM = 0
AND K2_DSCJUR = 0
AND K2_SELTIT = 'VALOR'
AND K2_ACRESC = 0
AND K2_DECRES = 0
AND K2_LIQUIDA = 'VALOR'