Regra Apuracao de Tributos
A tabela V10 faz parte do sistema ERP Protheus da TOTVS e é utilizada para regra apuracao de tributos.
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 V10 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 V10, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | V10 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | V10990 |
| X2_NOME | Regra Apuracao de Tributos |
| X2_NOMESPA | Regla de cálculo de tributos |
| X2_NOMEENG | Tax Verification Rule |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | C |
| X2_MODOEMP | C |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | V10_FILIAL+V10_CODIGO |
| X2_PYME | S |
| X2_MODULO | 84 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 2 |
| X2_AUTREC | 1 |
| 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_ | 9947 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| V10 | 01 | V10_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 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162917 | 0 |
| V10 | 02 | V10_REGFIS | C | 2 | 0 | Re. Fiscal | Rég. Fiscal | Fiscal Sys | Regime Fiscal | Régimen fiscal | Fiscal System | - | Pertence('01|02') | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | 01=Competência;02=Caixa | 01=Vigencia;02=Caja | 01=Accrual;02=Cash | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162918 | 0 |
| V10 | 03 | V10_REGAPU | C | 2 | 0 | Reg. Apu. | Reg. Cál. | Verif Sys | Regime de Apuração | Régimen de cálculo | Verification System | - | Pertence('01|02') | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | 01=Cumulativo;02=Nao cumulativo | 01=Acumulativo;02=No Acumulativo | 01=Cumulative;02=Not Cumulative | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162919 | 0 |
| V10 | 04 | V10_REGTRI | C | 2 | 0 | Reg. Tribut. | Reg. Tributo | Tax Sys | Regime Tributário | Régimen Tributario | Tax System | - | Pertence('01|02|03') | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | 01=Lucro real;02=Lucro presumido;03=Simples nacional | 01=Ganancia real;02=Ganancia estimada;03=Simples nacional | 01=Actual Profit;02=Assumed Profit;03=Simples Nacional | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162920 | 0 |
| V10 | 05 | V10_TRIBUT | C | 2 | 0 | Tributo | Tributo | Tax | Tributo | Tributo | Tax | - | Pertence('01|02|03|04|05') | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | 01=CSLL;02=CPRB;03=PIS/COFINS;04=ICMS;05=IPI | 01=CSLL;02=CPRB;03=PIS/COFINS;04=ICMS;05=IPI | 01=CSLL;02=CPRB;03=PIS/COFINS;04=ICMS;05=IPI | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162921 | 0 |
| V10 | 06 | V10_VIGINI | D | 8 | 0 | Dt. Ini. Vig | Fch. Ini. Vi | Val St Dt | Dt. Inicial da Vigencia | Fch. Inicial de vigencia | Validity Start Date | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162922 | 0 |
| V10 | 07 | V10_VIGFIN | D | 8 | 0 | Dt. Fin. Vig | Fch. Fin. Vi | Val End Dt | Dt. Final Vigencia | Fch. Final vigencia | Validity End Date | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162923 | 0 |
| V10 | 08 | V10_CODIGO | C | 6 | 0 | Cod. Regra | Cód. Regla | Rule Code | Código da Regra | Cód Regla | Rule Code | @! | - | x x x x x x x x x x x x x x x x | GetSx8Num('V10','V10_CODIGO') | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162924 | 0 |
| V10 | 09 | V10_PERAPU | C | 36 | 0 | Per.Apuração | Per.Cálculo | Calculation | Periodo Apuração | Período de cálculo | Calculation Period | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162925 | 0 |
| V10 | 10 | V10_IDSLD | C | 2 | 0 | ID Saldo | ID Saldo | Balance ID | ID Saldo | ID Saldo | Balance ID | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162926 | 0 |
| V10 | 11 | V10_DCSLD | C | 30 | 0 | Desc.Saldo | Desc.Saldo | Balance Desc | Descrição Saldo | Descrip. Saldo | Balance Description | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162927 | 0 |
| V10 | 12 | V10_DESCRI | C | 224 | 0 | Descrição | Descripción | Description | Descrição | Descripción | Description | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162928 | 0 |
| V10 | 13 | V10_PRFIL | C | 2 | 0 | Pro. Filial | Pro. Suc | Pro. Branch | Processa filial | Procesa Suc | Process Branch | @! | Pertence("1 /2 ") | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | 1=Individualizada;2=Agrupada | 1=Individualizada;2=Agrupada | 1=Individualized;2=Grouped | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 162929 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| V10 | 1 | V10_FILIAL+V10_CODIGO | Cod. Regra | Cód. Regla | Rule Code | S | - | - | S | 2 | 3 | - | 23701 | 0 |
Ela é utilizada para regra apuracao de tributos 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
V10_FILIAL,
V10_REGFIS,
V10_REGAPU,
V10_REGTRI,
V10_TRIBUT,
V10_VIGINI,
V10_VIGFIN,
V10_CODIGO,
V10_PERAPU,
V10_IDSLD,
V10_DCSLD,
V10_DESCRI,
V10_PRFIL
FROM V10
WHERE
D_E_L_E_T_ = ' '
AND V10_FILIAL = 'VALOR'
AND V10_REGFIS = 'VALOR'
AND V10_REGAPU = 'VALOR'
AND V10_REGTRI = 'VALOR'
AND V10_TRIBUT = 'VALOR'
AND V10_VIGINI BETWEEN '20260801' AND '20260831'
AND V10_VIGFIN BETWEEN '20260801' AND '20260831'
AND V10_CODIGO = 'VALOR'
AND V10_PERAPU = 'VALOR'
AND V10_IDSLD = 'VALOR'
AND V10_DCSLD = 'VALOR'
AND V10_DESCRI = 'VALOR'
AND V10_PRFIL = 'VALOR'