Processamento de Comissão
A tabela GQ6 faz parte do sistema ERP Protheus da TOTVS e é utilizada para processamento de comissã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 GQ6 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 GQ6, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | GQ6 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | GQ6990 |
| X2_NOME | Processamento de Comissão |
| X2_NOMESPA | Procesamiento comisión |
| X2_NOMEENG | Commission Processing |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | GQ6_FILIAL+GQ6_CODIGO+GQ6_SIMULA |
| X2_PYME | S |
| X2_MODULO | 88 |
| 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_ | 5237 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GQ6 | 01 | GQ6_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 | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83799 | 0 |
| GQ6 | 02 | GQ6_CODIGO | C | 6 | 0 | Código | Código | Code | Código de Processamento | Código de procesamiento | Processing Code | @! | - | 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 | - | - | - | 83800 | 0 |
| GQ6 | 03 | GQ6_SIMULA | C | 3 | 0 | N simulação | Nº simulació | Simul no. | Numero da simulação | Número de la simulación | Simulation number | - | - | 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 | - | - | - | 83801 | 0 |
| GQ6 | 04 | GQ6_AGENCI | C | 6 | 0 | Agência | Agencia | Branch | Código da agência. | Código de la agencia. | Bank Branch Code | @! | ExistCpo('GI6') | x x x x x x x x x x x x x x x x | - | GI6 | 1 | x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 83802 | 0 |
| GQ6 | 05 | GQ6_DESAGE | C | 30 | 0 | Desc.Agencia | Desc.Agencia | Branch Descr | Descrição Agencia | Descrip. Agencia | Bank Branch Description | @! | - | x x x x x x x x x x x x x x x x | If(!INCLUI,Posicione("GI6",1,xFilial("GI6")+GQ6->GQ6_AGENCI,"GI6_DESCRI"),"") | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("GI6",1,xFilial("GI6")+GQ6->GQ6_AGENCI,"GI6_DESCRI") | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83803 | 0 |
| GQ6 | 06 | GQ6_DATADE | D | 8 | 0 | Data de | De fecha | Date from | Data Inicial | Fecha inicial | Start Date | - | - | 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 | - | - | - | 83804 | 0 |
| GQ6 | 07 | GQ6_DATATE | D | 8 | 0 | Data Ate | A fecha | Date to | Data Final | Fecha final | End Date | - | - | 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 | - | - | - | 83805 | 0 |
| GQ6 | 08 | GQ6_FORMUL | C | 6 | 0 | Fórmula | Fórmula | Formula | Código da Fórmula | Código de la fórmula | Formula Code | @! | ExistCpo('GQ5') | x x x x x x x x x x x x x x x x | - | GQ5 | 1 | x | - | S | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 83806 | 0 |
| GQ6 | 09 | GQ6_DFORMU | C | 30 | 0 | Desc. Formul | Desc. Fórm. | Form Descr | Desc. Formula Calc. | Desc. Fórmula Cálc. | Calculation Formula Descr | @! | - | x x x x x x x x x x x x x x x x | If(!INCLUI,Posicione("GQ5",1,xFilial("GQ5")+GQ6->GQ6_FORMUL,"GQ5_DESCRI"),"") | - | 1 | x | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83807 | 0 |
| GQ6 | 10 | GQ6_CODCOL | C | 6 | 0 | Colaborador | Colaborador | Collaborator | Código do Colaborador | Código del colaborador | Collaborator Code | @! | ExistCpo("GYG") | x x x x x x x x x x x x x x x x | - | GYG | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83808 | 0 |
| GQ6 | 11 | GQ6_DCDCOL | C | 30 | 0 | Nome | Nombre | Name | Nome do Colaborador | Nombre del colaborador | Collaborator Name | @! | - | x x x x x x x x x x x x x x x x | If(!INCLUI,Posicione("GYG",1,xFilial("GYG")+GQ6->GQ6_CODCOL,"GYG_NOME"),"") | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("GYG",1,xFilial("GYG")+GQ6->GQ6_CODCOL,"GYG_NOME") | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83809 | 0 |
| GQ6 | 12 | GQ6_TIPREC | C | 6 | 0 | Tp. Recurso | Tp. Recurso | Resource Tp | Código Tipo de Recurso | Código tipo de recurso | Resource Type Code | @! | ExistCpo("GYK") | 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 | - | - | - | 83810 | 0 |
| GQ6 | 13 | GQ6_DTPREC | C | 30 | 0 | Des Tp Rec | Des Tp Rec | Res Tp Descr | Desc. Tipo Recurso | Desc. Tipo Recurso | Resource Type Description | @! | - | x x x x x x x x x x x x x x x x | If(!INCLUI,Posicione("GYK",1,xFilial("GYK")+ GQ6-> GQ6_TIPREC,"GYK_DESCRI"),"") | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("GYK",1,xFilial("GYK")+ GQ6->GQ6_TIPREC,"GYK_DESCRI") | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83811 | 0 |
| GQ6 | 14 | GQ6_EXPFOL | D | 8 | 0 | Dt.Exp.Folha | Fch.Exp.Plan | Payr Exp Dt | Data Exportação Folha | Fch Exportación planilla | Payroll Export Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83812 | 0 |
| GQ6 | 15 | GQ6_FORNEC | C | 6 | 0 | Cod.Forneced | Cód.Proveedo | Supp code | Codigo Fornecedor | Código Proveedor | Supplier code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83813 | 0 |
| GQ6 | 16 | GQ6_LOJA | C | 2 | 0 | Lj fornec | Td Proved. | Supp store | Loja fornecedor | Tienda proveedor | Supplier store | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83814 | 0 |
| GQ6 | 17 | GQ6_CODG5D | C | 6 | 0 | Cod.Cad.Comi | Cód Reg.Comi | Com reg cd | Codigo Cadastro Comissao | Código registro comisión | Commission register code | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83815 | 0 |
| GQ6 | 18 | GQ6_CODGZI | C | 8 | 0 | Cod.Log.Prc. | Cód.Log.Prc. | Proc log cd | Codigo Log Processamento | Código Log Procesamiento | Processing log code | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83816 | 0 |
| GQ6 | 19 | GQ6_GERTIT | L | 1 | 0 | Gera Titulo? | Genera Títul | Gen bill? | Gera titulo a pagar? | ¿Genera título por pagar? | Generate bills to pay? | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83817 | 0 |
| GQ6 | 20 | GQ6_COLDE | C | 6 | 0 | Cod.Colab | Cód. Colab | Collab code | Codigo Colaborador | Código del colaborador | Collaborator code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83818 | 0 |
| GQ6 | 21 | GQ6_COLATE | C | 6 | 0 | Cod.Colab | Cód. Colab | Collab code | Codigo Colaborador | Código del colaborador | Collaborator code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 83819 | 0 |
| GQ6 | 22 | GQ6_ADIANT | N | 12 | 2 | Vr.Adiantam | Val. Anticip | Prepay Vl | Valor de Adiantamento | Valor de anticipo | Prepayment Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83820 | 0 |
| GQ6 | 23 | GQ6_VTCOMI | N | 12 | 2 | Vl.Tt.Comiss | Vl.Tt.Comis. | Commis tt vl | Valor total da comissão | Nùmero de simulación tota | Commission total value | @E 999,999,999.99 | - | 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 | - | - | - | 83821 | 0 |
| GQ6 | 24 | GQ6_VTIMPO | N | 12 | 2 | Vl.Total Imp | Vl.Total Imp | Tot tax amt | Valor total imposto | Valor total impuesto | Total tax amount | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83822 | 0 |
| GQ6 | 25 | GQ6_VTTAXA | N | 12 | 2 | Vl. Tt Taxa | Vl. Tt Tasa | Tot rate amt | Valor total Taxa | Valor total tasa | Total rate amount | @E 999,999,999.99 | - | 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 | - | - | - | 83823 | 0 |
| GQ6 | 26 | GQ6_VTBONF | N | 12 | 2 | Vl Tt Bonifi | Vl Tt Bonif. | Tot bon amt | Valor total bonificação | Valor total bonificación | Total bonus amount | @E 999,999,999.99 | - | 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 | - | - | - | 83824 | 0 |
| GQ6 | 27 | GQ6_VTDESC | N | 12 | 2 | Vl Tt Descon | Vl Tt Descue | Tot disc amt | Valor total Desconto | Valor total descuento | Total discount amount | @E 999,999,999.99 | - | 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 | - | - | - | 83825 | 0 |
| GQ6 | 28 | GQ6_VTVEND | N | 12 | 2 | Vl.Tt.Vendas | Vl.Tt.Ventas | Tot sal amt | Valor total de vendas | Valor total de ventas | Total sales amount | @E 999,999,999.99 | - | 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 | - | - | - | 83826 | 0 |
| GQ6 | 29 | GQ6_EXPFIN | C | 6 | 0 | Exp.Financei | Exp.Financie | Financ exp | Cod.Exp.Fin | Cód.Exp.Fin | Fin exp code | - | - | 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 | - | - | - | 83827 | 0 |
| GQ6 | 30 | GQ6_VTENCO | N | 12 | 2 | Vlr Tot Enc | Val Tot Enc | Tot Ord Val | Valor Total Encomendas | Valor Total Encomiendas | Total Order Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 83828 | 0 |
| GQ6 | 31 | GQ6_TPCOMI | C | 1 | 0 | Tp Comissão | Tp Comisión | Commission T | Tipo de Comissão | Tipo de comisión | Commission Type | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 83829 | 0 |
| GQ6 | 32 | GQ6_PERFOL | C | 6 | 0 | Per. Folha | Por. Planill | Payroll Per | Período da Folha Pagto. | Per Planilla de haberes | Payroll Period | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 83830 | 0 |
| GQ6 | 33 | GQ6_VRBCOM | C | 3 | 0 | Verba Com. | Conc Com. | Comm Item | Código Verba de Comissão | Código concepto de comisi | Commission Payroll Item C | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 83831 | 0 |
| GQ6 | 34 | GQ6_VRBDSR | C | 3 | 0 | Verba DSR | Concep DSR | PWR Fund | Código Verba DSR | Cód Concep DSR | DSR fund code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 83832 | 0 |
| GQ6 | 35 | GQ6_NUMFCH | C | 10 | 0 | Num. Ficha | Nº Ficha | Form No. | Número da Ficha Remessa | Número de la ficha de env | Shipment Form Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 83833 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GQ6 | 1 | GQ6_FILIAL+GQ6_CODIGO+GQ6_SIMULA | Código + N simulação | Código + Nº simulació | Code + Simul no. | S | - | - | S | 2 | 3 | - | 12382 | 0 |
| GQ6 | 2 | GQ6_FILIAL+GQ6_AGENCI+DTOS(GQ6_DATADE)+DTOS(GQ6_DATATE) | Agência + Data de + Data Ate | Agencia + De fecha + A fecha | Branch + Date from + Date to | S | - | - | S | 2 | 3 | - | 12383 | 0 |
| GQ6 | 3 | GQ6_FILIAL+GQ6_CODCOL+DTOS(GQ6_DATADE)+DTOS(GQ6_DATATE) | Colaborador + Data de + Data Ate | Colaborador + De fecha + A fecha | Collaborator + Date from + Date to | S | - | - | S | 2 | 3 | - | 12384 | 0 |
Ela é utilizada para processamento de comissã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
GQ6_FILIAL,
GQ6_CODIGO,
GQ6_SIMULA,
GQ6_AGENCI,
GQ6_DESAGE,
GQ6_DATADE,
GQ6_DATATE,
GQ6_FORMUL,
GQ6_DFORMU,
GQ6_CODCOL,
GQ6_DCDCOL,
GQ6_TIPREC,
GQ6_DTPREC,
GQ6_EXPFOL,
GQ6_FORNEC,
GQ6_LOJA,
GQ6_CODG5D,
GQ6_CODGZI,
GQ6_GERTIT,
GQ6_COLDE,
GQ6_COLATE,
GQ6_ADIANT,
GQ6_VTCOMI,
GQ6_VTIMPO,
GQ6_VTTAXA,
GQ6_VTBONF,
GQ6_VTDESC,
GQ6_VTVEND,
GQ6_EXPFIN,
GQ6_VTENCO,
GQ6_TPCOMI,
GQ6_PERFOL,
GQ6_VRBCOM,
GQ6_VRBDSR,
GQ6_NUMFCH
FROM GQ6
WHERE
D_E_L_E_T_ = ' '
AND GQ6_FILIAL = 'VALOR'
AND GQ6_CODIGO = 'VALOR'
AND GQ6_SIMULA = 'VALOR'
AND GQ6_AGENCI = 'VALOR'
AND GQ6_DESAGE = 'VALOR'
AND GQ6_DATADE BETWEEN '20260501' AND '20260531'
AND GQ6_DATATE BETWEEN '20260501' AND '20260531'
AND GQ6_FORMUL = 'VALOR'
AND GQ6_DFORMU = 'VALOR'
AND GQ6_CODCOL = 'VALOR'
AND GQ6_DCDCOL = 'VALOR'
AND GQ6_TIPREC = 'VALOR'
AND GQ6_DTPREC = 'VALOR'
AND GQ6_EXPFOL BETWEEN '20260501' AND '20260531'
AND GQ6_FORNEC = 'VALOR'
AND GQ6_LOJA = 'VALOR'
AND GQ6_CODG5D = 'VALOR'
AND GQ6_CODGZI = 'VALOR'
AND GQ6_COLDE = 'VALOR'
AND GQ6_COLATE = 'VALOR'
AND GQ6_ADIANT = 0
AND GQ6_VTCOMI = 0
AND GQ6_VTIMPO = 0
AND GQ6_VTTAXA = 0
AND GQ6_VTBONF = 0
AND GQ6_VTDESC = 0
AND GQ6_VTVEND = 0
AND GQ6_EXPFIN = 'VALOR'
AND GQ6_VTENCO = 0
AND GQ6_TPCOMI = 'VALOR'
AND GQ6_PERFOL = 'VALOR'
AND GQ6_VRBCOM = 'VALOR'
AND GQ6_VRBDSR = 'VALOR'
AND GQ6_NUMFCH = 'VALOR'