Regra Produto x Tipo Bilhete
A tabela G9O faz parte do sistema ERP Protheus da TOTVS e é utilizada para regra produto x tipo bilhete.
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 G9O 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 G9O, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | G9O |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | G9O990 |
| X2_NOME | Regra Produto x Tipo Bilhete |
| X2_NOMESPA | Regla producto vs. Tipo ticket |
| X2_NOMEENG | Product Rule x Ticket Type |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | G9O_FILIAL+G9O_ORIGEM+G9O_TIPO+G9O_STATUS+G9O_GQCCOD |
| 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_ | 4774 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G9O | 01 | G9O_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 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77029 | 0 |
| G9O | 02 | G9O_CODIGO | C | 6 | 0 | Código | Código | Code | Código | Código | Code | @ | - | x x x x x x x x x x x x x x x x | IIF(INCLUI,GETSXENUM("G9O","G9O_CODIGO"),G9O->G9O_CODIGO) | - | 1 | x x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77030 | 0 |
| G9O | 03 | G9O_ORIGEM | C | 1 | 0 | Origem | Origen | Origin | Origem do Bilhete | Origen pasaje | Ticket Origin | @ | Pertence("12") | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | - | A | R | - | - | 1=Manual;2=Eletronica | 1=Manual;2=Electrónica | 1=Manual;2=Electronic | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77031 | 0 |
| G9O | 04 | G9O_TIPO | C | 1 | 0 | Tipo | Tipo | Type | Tipo de Bilhete | Tipo de billete | Ticket Type | @ | Pertence("ITEMPW") | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | I=Informatizada;T=Troca;E=Embarcada;M=Manual;P=Impressão Posterior;W=Venda Web | I=Informatizada;T=Cambio;E=Embarcada;M=Manual;P=Impresión posterior;W=Venta Web | I=Computerized;T=Exchange;E=Shipped;M=Manual;P=Later Printing;W=Web Sale | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77032 | 0 |
| G9O | 05 | G9O_STATUS | C | 1 | 0 | Status | Estatus | Status | Status do Bilhete | Estatus del billete | Ticket Status | @ | Pertence("VCTEDI") | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | V=Vendido;C=Cancelado;T=Transferido;E=Entregue;D=Devolvido;I=Inutilizado | V=Vendido;A=Anulado;T=Transferido;E=Entregado;D=Devuelto;I=Inutilizado | V=Sold;C=Canceled;T=Transferred;E=Delivered;D=Returned;I=Void | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77033 | 0 |
| G9O | 06 | G9O_PRDTAR | C | 15 | 0 | Prod.Tarifa | Prod.Tarifa | Fee Prod | Produto da Tarifa | Producto de la tarifa | Fee Product | @! | ExistCpo("SB1") | x x x x x x x x x x x x x x x x | - | SB1 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77034 | 0 |
| G9O | 07 | G9O_DSCTAR | C | 50 | 0 | Desc. Tarifa | Desc. Tarifa | Fee Desc | Desc.do Produto Tarifa | Desc.del Producto tarifa | Fee Product Desc | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDTAR,'B1_DESC'),'') | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDTAR,'B1_DESC') | 171 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77035 | 0 |
| G9O | 08 | G9O_PRDTAX | C | 15 | 0 | Produto Taxa | Producto tas | Rate Product | Produto da Taxa | Producto de la tasa | Rate Product | @! | ExistCpo("SB1") | x x x x x x x x x x x x x x x x | - | SB1 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77036 | 0 |
| G9O | 09 | G9O_DSCTAX | C | 50 | 0 | Desc. Taxa E | Desc. Tasa E | Rate Desc | Desc. do Produto de Taxa | Desc. del Producto de tas | Rate Product Desc | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDTAX,'B1_DESC'),'') | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDTAX,'B1_DESC') | 171 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77037 | 0 |
| G9O | 10 | G9O_PRDPED | C | 15 | 0 | Prod.Pedágio | Prod.Peaje | Toll Prod | Produto do Pedágio | Producto del peaje | Toll Product | @! | ExistCpo("SB1") | x x x x x x x x x x x x x x x x | - | SB1 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77038 | 0 |
| G9O | 11 | G9O_DSCPED | C | 50 | 0 | Desc Pedágio | Desc Peaje | Toll Desc | Desc. Produto de Pedágio | Desc. Producto de peaje | Toll Product Desc | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDPED,'B1_DESC'),'') | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDPED,'B1_DESC') | 171 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77039 | 0 |
| G9O | 12 | G9O_PRDSEG | C | 15 | 0 | Prod.Seguro | Prod.Seguro | Insurance Pr | Produto do Seguro | Producto del seguro | Insurance Product | @! | ExistCpo("SB1") | x x x x x x x x x x x x x x x x | - | SB1 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77040 | 0 |
| G9O | 13 | G9O_DSCSEG | C | 50 | 0 | Desc. Seguro | Desc. Seguro | Insurance De | Desc. Produto de Seguro | Desc. Producto de seguro | Insurance Product Desc | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDSEG,'B1_DESC'),'') | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDSEG,'B1_DESC') | 171 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77041 | 0 |
| G9O | 14 | G9O_PRDOUT | C | 15 | 0 | Prod. Outros | Prod. Otros | Other Prod | Produto Outros | Producto otros | Other Product | @! | ExistCpo("SB1") | x x x x x x x x x x x x x x x x | - | SB1 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77042 | 0 |
| G9O | 15 | G9O_DSCOUT | C | 50 | 0 | Desc. Outros | Desc. Otros | Other Desc | Desc. Outros totais | Desc. Otros totales | Other Total Desc | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDOUT,'B1_DESC'),'') | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('SB1',1,xFilial('SB1')+G9O->G9O_PRDOUT,'B1_DESC') | 171 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77043 | 0 |
| G9O | 16 | G9O_MSBLQL | C | 1 | 0 | Bloqueado? | ¿Bloqueado? | Blocked? | Registro bloqueado | Registro bloqueado | Blocked Record | @ | Pertence('12') | x x x x x x x x x x x x x x x x | '2' | - | 1 | x | - | - | - | N | A | R | - | - | 1=Sim;2=Não | 1=Sí;2=No | 1=Yes;2=No | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77044 | 0 |
| G9O | 17 | G9O_GQCCOD | C | 6 | 0 | Cód. Tp. Lin | Cód. Tp. Lín | Line Tp Cd | Código do Tipo de Linha | Código del tipo de línea | Code of line type | @! | Vazio() .or. ExistCpo('GQC') | x x x x x x x x x x x x x x x x | - | GQC | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77045 | 0 |
| G9O | 18 | G9O_GQCDES | C | 30 | 0 | Nome Tp.Lin. | Nomb Tp.Lín. | Line Tp Nam | Nome do Tipo da Linha | Nombre del tipo de línea | Name of Line type | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione('GQC',1,xFilial('GQC')+G9O->G9O_GQCCOD,'GQC_DESCRI'),'') | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('GQC',1,xFilial('GQC')+G9O->G9O_GQCCOD,'GQC_DESCRI') | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 77046 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G9O | 1 | G9O_FILIAL+G9O_CODIGO | Código | Código | Code | S | - | - | S | 2 | 3 | - | 11293 | 0 |
| G9O | 2 | G9O_FILIAL+G9O_ORIGEM+G9O_TIPO+G9O_STATUS+G9O_GQCCOD+G9O_CODIGO | Origem + Tipo + Status + Cód. Tp. Lin + Código | Origen + Tipo + Estatus + Cód. Tp. Lín + Código | Origin + Type + Status + Line Tp Cd + Code | S | - | - | S | 2 | 3 | - | 11294 | 0 |
Ela é utilizada para regra produto x tipo bilhete 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
G9O_FILIAL,
G9O_CODIGO,
G9O_ORIGEM,
G9O_TIPO,
G9O_STATUS,
G9O_PRDTAR,
G9O_DSCTAR,
G9O_PRDTAX,
G9O_DSCTAX,
G9O_PRDPED,
G9O_DSCPED,
G9O_PRDSEG,
G9O_DSCSEG,
G9O_PRDOUT,
G9O_DSCOUT,
G9O_MSBLQL,
G9O_GQCCOD,
G9O_GQCDES
FROM G9O
WHERE
D_E_L_E_T_ = ' '
AND G9O_FILIAL = 'VALOR'
AND G9O_CODIGO = 'VALOR'
AND G9O_ORIGEM = 'VALOR'
AND G9O_TIPO = 'VALOR'
AND G9O_STATUS = 'VALOR'
AND G9O_PRDTAR = 'VALOR'
AND G9O_DSCTAR = 'VALOR'
AND G9O_PRDTAX = 'VALOR'
AND G9O_DSCTAX = 'VALOR'
AND G9O_PRDPED = 'VALOR'
AND G9O_DSCPED = 'VALOR'
AND G9O_PRDSEG = 'VALOR'
AND G9O_DSCSEG = 'VALOR'
AND G9O_PRDOUT = 'VALOR'
AND G9O_DSCOUT = 'VALOR'
AND G9O_MSBLQL = 'VALOR'
AND G9O_GQCCOD = 'VALOR'
AND G9O_GQCDES = 'VALOR'