Outras Inf.Lucro Pres./Arbitr.
A tabela CGV faz parte do sistema ERP Protheus da TOTVS e é utilizada para outras inf.lucro pres./arbitr..
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 CGV 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 CGV, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | CGV |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | CGV990 |
| X2_NOME | Outras Inf.Lucro Pres./Arbitr. |
| X2_NOMESPA | Otras Inf.Ganan Pres./Arbitr. |
| X2_NOMEENG | Other Inf. Profit Pres./Arbit. |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | CGV_FILIAL+CGV_ID |
| X2_PYME | S |
| X2_MODULO | 84 |
| X2_DISPLAY | - |
| X2_SYSOBJ | TAFA357 |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 1 |
| 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_ | 2308 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CGV | 01 | CGV_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del Sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36259 | 0 |
| CGV | 02 | CGV_ID | C | 36 | 0 | ID | ID | ID | Identificador do Registro | Identificador de Registro | Record Identifier | - | - | x x x x x x x x x x x x x x x x | TAFGeraID("TAF") | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 085 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 36260 | 0 |
| CGV | 03 | CGV_PERIOD | D | 8 | 0 | Periodo | Periodo | Period | Periodo do lançamento | Periodo del asiento | Transaction period | - | XFUNVldUni("CGV",2,DTOS(M->CGV_PERIOD),.F.) | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 36261 | 0 |
| CGV | 04 | CGV_CAPANT | N | 16 | 2 | Capital Ant. | Capital Ant. | Adv Capital | Capital Reg. Ano Anterior | Capital Reg. Ano Anterior | Reg Capital Prev Year | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36262 | 0 |
| CGV | 05 | CGV_CAPITA | N | 16 | 2 | Capital | Capital | Capital | Capital registrado | Capital registrado | Registered capital | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36263 | 0 |
| CGV | 06 | CGV_ESTANT | N | 16 | 2 | Estoques Ant | Stocks Ant | Prev Stock | Estoques Reg Ano Anterior | Stocks Reg Ano Anterior | Stock Reg Prev Year | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36264 | 0 |
| CGV | 07 | CGV_ESTOQU | N | 16 | 2 | Estoques | Stocks | Inventories | Estoques | Stocks | Inventories | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36265 | 0 |
| CGV | 08 | CGV_CAIANT | N | 16 | 2 | Caixa Ant. | Caja Ant. | Adv Cash | Saldo Caixa/Banco Ano Ant | Saldo Caja/Banco Ano Ant | Balance cash/Bank Prev Yr | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36266 | 0 |
| CGV | 09 | CGV_CAIXA | N | 16 | 2 | Caixa | Caja | Cash | Saldo de caixa e bancos | Saldo de caja y bancos | Cash and Banks Management | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36267 | 0 |
| CGV | 10 | CGV_APLANT | N | 16 | 2 | Ap Finan Ant | Cal Finan An | Pr Finan Ap | Saldo Aplic. Fin. Ano Ant | Saldo Inv. Fin. Ano Ant | Appl Balance Prev Year Fi | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36268 | 0 |
| CGV | 11 | CGV_APLFIN | N | 16 | 2 | Aplic.Finan. | Inv. Finan. | Finan Appl. | Aplicação Financeira | Inversion Financiera | Financial Application | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36269 | 0 |
| CGV | 12 | CGV_CTRANT | N | 16 | 2 | Cont Rec Ant | Cuent Cob An | Acct Rec Ant | Contas à Receber Ano Ant | Cuenta por cobrar Ano Ant | Accounts Receiv Prev Year | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36270 | 0 |
| CGV | 13 | CGV_CTAREC | N | 16 | 2 | Contas Receb | Cuentas Cb | Accts Receiv | Contas a Receber | Cuentas por Cobrar | Accounts Receivable | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36271 | 0 |
| CGV | 14 | CGV_CTPANT | N | 16 | 2 | Cont Pag Ant | Cuen Pag Ant | Prev Acc Pay | Contas à Pagar Ano Anter. | Cuentas por Pagar Ano Ant | Accounts Payable Prev Yr | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36272 | 0 |
| CGV | 15 | CGV_CTAPAG | N | 16 | 2 | Contas Pagar | Cuentas Pgr | Accts Payabl | Contas a Pagar | Cuentas por Pagar | Accounts Payable | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36273 | 0 |
| CGV | 16 | CGV_COMMER | N | 16 | 2 | Comp.Merc. | Comp.Merc. | Prod. purch | Compras de mercadorias | Compras de mercaderias | Product purchase | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36274 | 0 |
| CGV | 17 | CGV_COMATI | N | 16 | 2 | Compra Ativ. | Compra Activ | Asst Purchas | Comp.Ativo ano-calendário | CompActivo ano-calendario | Calendar-year Fxd Asst Co | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36275 | 0 |
| CGV | 18 | CGV_RECEIT | N | 16 | 2 | Receitas | Ingresos | Revenues | Receitas e Rendimentos | Ingresos y Rentabilidades | Revenues | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36276 | 0 |
| CGV | 19 | CGV_TOTATI | N | 16 | 2 | Total Ativo | Total Activo | Asset Total | Total do Ativo | Total del Activo | Asset Total | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36277 | 0 |
| CGV | 20 | CGV_FOLHA | N | 16 | 2 | Tot.Folha | Tot. Nomina | Payroll Tot | Total da Folha | Total de la Nomina | Payroll Total | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36278 | 0 |
| CGV | 21 | CGV_ALQRED | N | 5 | 2 | Aliq.Reduz. | Alic.Reduc. | Reduc Perc | Aliquota Reduzida | Alicuota Reducida | Reduced Percentage | @E 99.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36279 | 0 |
| CGV | 22 | CGV_REGAPU | C | 1 | 0 | Reg.Apuração | Reg.Calculo | Calc Regstr | Regime Apuração Receitas | Regimen Calculo Ingresos | Income Calculation System | @! | Pertence("12") | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | 1=Caixa;2=Competência | 1=Caja;2=Vigencia | 1=Cash;2=Referecen | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36280 | 0 |
| CGV | 23 | CGV_INDEST | C | 1 | 0 | Ind Aval Est | Ind Eval Sto | Ind Eval Stk | Indic. Avaliação Estoques | Indic. Evaluacion Stocks | Indic Stock Evaluation | @ | Pertence(" 123") | x x x x x x x x x x x x x x x x | "1" | - | 1 | x | - | - | - | S | A | R | - | - | 1=Custo Médio Ponderado;2=PEPS;3=Arbitramento | 1=Costo Promedio Ponderado;2=PEPS;3=Arbitraje | 1=Weighted Estim Cost;2=PEPS;3=Calculation | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36281 | 0 |
| CGV | 24 | CGV_STATUS | C | 1 | 0 | Status Reg. | Estatus Reg. | Reg Status | Status do registro | Estatus del registro | Record status | @! | Pertence(" 01") | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | 0=Reg. Válido;1=Reg. Inválido | 0=Reg. Valido;1=Reg. Invalido | 0=Record Valid;1=Record Not Valid | - | - | - | 079 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 36282 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CGV | 1 | CGV_FILIAL+CGV_ID | ID | ID | ID | S | - | - | S | 2 | 3 | - | 5568 | 0 |
| CGV | 2 | CGV_FILIAL+DTOS(CGV_PERIOD) | Periodo | Periodo | Period | S | - | - | S | 2 | 3 | - | 5569 | 0 |
Ela é utilizada para outras inf.lucro pres./arbitr. 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
CGV_FILIAL,
CGV_ID,
CGV_PERIOD,
CGV_CAPANT,
CGV_CAPITA,
CGV_ESTANT,
CGV_ESTOQU,
CGV_CAIANT,
CGV_CAIXA,
CGV_APLANT,
CGV_APLFIN,
CGV_CTRANT,
CGV_CTAREC,
CGV_CTPANT,
CGV_CTAPAG,
CGV_COMMER,
CGV_COMATI,
CGV_RECEIT,
CGV_TOTATI,
CGV_FOLHA,
CGV_ALQRED,
CGV_REGAPU,
CGV_INDEST,
CGV_STATUS
FROM CGV
WHERE
D_E_L_E_T_ = ' '
AND CGV_FILIAL = 'VALOR'
AND CGV_ID = 'VALOR'
AND CGV_PERIOD BETWEEN '20260501' AND '20260531'
AND CGV_CAPANT = 0
AND CGV_CAPITA = 0
AND CGV_ESTANT = 0
AND CGV_ESTOQU = 0
AND CGV_CAIANT = 0
AND CGV_CAIXA = 0
AND CGV_APLANT = 0
AND CGV_APLFIN = 0
AND CGV_CTRANT = 0
AND CGV_CTAREC = 0
AND CGV_CTPANT = 0
AND CGV_CTAPAG = 0
AND CGV_COMMER = 0
AND CGV_COMATI = 0
AND CGV_RECEIT = 0
AND CGV_TOTATI = 0
AND CGV_FOLHA = 0
AND CGV_ALQRED = 0
AND CGV_REGAPU = 'VALOR'
AND CGV_INDEST = 'VALOR'
AND CGV_STATUS = 'VALOR'