Controle CTE-OS
A tabela GZH faz parte do sistema ERP Protheus da TOTVS e é utilizada para controle cte-os.
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 GZH 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 GZH, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | GZH |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | GZH990 |
| X2_NOME | Controle CTE-OS |
| X2_NOMESPA | Control CTE-OS |
| X2_NOMEENG | CTE-OS Control |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | GZH_FILIAL+GZH_NOTA+GZH_SERIE+GZH_CLIENT+GZH_LOJA |
| 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_ | 5498 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GZH | 01 | GZH_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 x | - | - | - | - | V | R | - | - | - | - | - | - | - | - | 033 | 1 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 88020 | 0 |
| GZH | 02 | GZH_NOTA | C | 9 | 0 | Nota Fiscal | Factura | Invoice | Nota Fiscal | Factura | Invoice | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 018 | 1 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 88021 | 0 |
| GZH | 03 | GZH_SERIE | C | 3 | 0 | Serie | Serie | Series | Serie | Serie | Series | !!! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 094 | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88022 | 0 |
| GZH | 04 | GZH_CLIENT | C | 6 | 0 | Cliente | Cliente | Customer | Cliente | Cliente | Customer | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 001 | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88023 | 0 |
| GZH | 05 | GZH_LOJA | C | 2 | 0 | Loja | Tienda | Store | Loja | Tienda | Store | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 002 | 1 | S | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 88024 | 0 |
| GZH | 06 | GZH_NOME | C | 50 | 0 | Nome | Nombre | Name | Nome | Nombre | Name | @! | - | x x x x x x x x x x x x x x x x | IIF(INCLUI,"",Posicione( "SA1", 1, xFilial("SA1") + GZH->GZH_CLIENT + GZH->GZH_LOJA , "A1_NOME")) | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione( "SA1", 1, xFilial('SA1') + GZH->(GZH_CLIENT +GZH_LOJA) , 'A1_NOME') | 175 | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88025 | 0 |
| GZH | 07 | GZH_UMUINI | C | 2 | 0 | UF inicial | EsPrRg Inici | Initial Stat | UF inicial | E/P/R inicial | Initial State | @! | ExistCpo("SX5","12"+M->GZH_UMUINI) | x x x x x x x x x x x x x x x x | - | 12 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 010 | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88026 | 0 |
| GZH | 08 | GZH_CMUINI | C | 5 | 0 | Mun Inicial | Mun Inicial | Initial mun | Mun Inicial | Mun Inicial | Initial mun | - | ExistCpo("CC2",M->GZH_UMUINI+M->GZH_CMUINI) | x x x x x x x x x x x x x x x x | - | MUGZH1 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88027 | 0 |
| GZH | 09 | GZH_DMUINI | C | 60 | 0 | Desc Mun Ini | Desc Mun Ini | Ini mun desc | Desc Mun Ini | Desc Mun Ini | Ini mun desc | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88028 | 0 |
| GZH | 10 | GZH_UMUFIM | C | 2 | 0 | UF final | EsPrRg Final | Final State | UF final | E/P/R Final | Final State | @! | ExistCpo("SX5","12"+M->GZH_UMUFIM) | x x x x x x x x x x x x x x x x | - | 12 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 010 | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88029 | 0 |
| GZH | 11 | GZH_CMUFIM | C | 5 | 0 | Mun Final | Mun Final | Final mun | Mun Final | Mun Final | Final mun | - | ExistCpo("CC2",M->GZH_UMUFIM+M->GZH_CMUFIM) | x x x x x x x x x x x x x x x x | - | MUGZH2 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88030 | 0 |
| GZH | 12 | GZH_DMUFIM | C | 60 | 0 | Nome Mun Fim | Nomb Mun Fin | Fin mun name | Nome Mun Fim | Nomb Mun Fin | Final mun name | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88031 | 0 |
| GZH | 13 | GZH_VEIC | C | 16 | 0 | Veiculo | Vehículo | Vehicle | Veiculo | Vehículo | Vehicle | - | - | x x x x x x x x x x x x x x x x | - | ST9CTE | 1 | x | - | S | - | N | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88032 | 0 |
| GZH | 14 | GZH_PLACA | C | 8 | 0 | Placa | Placa | Plate | Placa | Placa | Plate | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88033 | 0 |
| GZH | 15 | GZH_RENAVA | C | 15 | 0 | Renavam | Renavam | Renavam | Renavam | Renavam | Renavam | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88034 | 0 |
| GZH | 16 | GZH_UFVEI | C | 2 | 0 | UF Veic | E/P/R Vehíc | Vehicle stat | UF Veiculo | E/P/R Vehículo | Vehicle State | @! | ExistCpo("SX5","12"+M->GZH_UFVEI) | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 010 | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88035 | 0 |
| GZH | 17 | GZH_INFQ | N | 3 | 0 | Quant Passag | Cant. Pasaj. | No. pass | Quant Passageiros | Cantidad pasajeros | Number of passengers | @E 999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88036 | 0 |
| GZH | 18 | GZH_UFPER | C | 30 | 0 | UF Percurso | UF Trayecto | Route state | UF Percurso | E/P/R Trayecto | Route State | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88037 | 0 |
| GZH | 19 | GZH_AUTTAF | C | 12 | 0 | Aut. TAF | Aut. TAF | TAF Aut. | Aut. TAF | Aut. TAF | Aut. TAF | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88038 | 0 |
| GZH | 20 | GZH_REGEST | C | 25 | 0 | Reg Estadual | Reg Estatal | State reg | Reg Estadual | Reg Estatal | State reg | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88039 | 0 |
| GZH | 21 | GZH_STATUS | C | 1 | 0 | Status | Estatus | Status | Status | Estatus | Status | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | 1=Pendente de Complemento;2=Pendente de Transmissao;3=Transmitida;4=Erro de Transmissao;5=Documento Impresso;6=Cancelado | 1=Pendiente de complemento;2=Pendiente de transmisión;3=Transmitida;4=Error de transmisión;5=Documento impreso;6=Anulado | 1=Complement Pending;2=Transm Pending;3=Transmitted;4=Transmission Error;5=Printing Document;6=Canceled | - | - | - | - | 4 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88040 | 0 |
| GZH | 22 | GZH_OBSNF | M | 10 | 0 | Obs NF | Obs Fact | Inv note | Obs NF | Obs Fact | Invoice note | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 3 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88041 | 0 |
| GZH | 23 | GZH_MSGFIS | M | 10 | 0 | Obs Fiscal | Obs Fiscal | Fiscal Obs | Obs Fiscal | Obs Fiscal | Fiscal Observation | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 3 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88042 | 0 |
| GZH | 24 | GZH_XMLCTE | M | 10 | 0 | Xml CteOS | Xml CteOS | Xml CteOS | Xml CteOS | Xml CteOS | Xml CteOS | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 4 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88043 | 0 |
| GZH | 25 | GZH_XMLAUT | M | 10 | 0 | Aut. Sefaz | Aut. Sefaz | Sefaz Aut. | Aut. Sefaz | Aut. Sefaz | Aut. Sefaz | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 4 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88044 | 0 |
| GZH | 26 | GZH_XMLERR | M | 10 | 0 | Erro CTEOS | Error CTEOS | Error CTEOS | Erro CTEOS | Error CTEOS | Error CTEOS | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 4 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88045 | 0 |
| GZH | 27 | GZH_CHVCTE | C | 44 | 0 | Chave CTEOS | Clave CTEOS | CTEOS key | Chave CTEOS | Clave CTEOS | CTEOS key | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 4 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88046 | 0 |
| GZH | 28 | GZH_PROTCA | C | 15 | 0 | Prot Canc | Prot Anul | Canc Prot | Prot Canc | Prot. Anul | Prot Canc | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 4 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88047 | 0 |
| GZH | 29 | GZH_PEDIDO | C | 6 | 0 | Pedido | Pedido | Order | Pedido | Pedido | Order | @! | - | 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 | 2 | - | - | - | 88048 | 0 |
| GZH | 30 | GZH_COMPVL | C | 1 | 0 | Compl. VL? | Compl. Val. | Compl VL? | Compl. VL? | Compl. Val. | Compl VL? | @! | - | 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=NAO | 1=SÍ;2=NO | 1=YES;2=NO | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88049 | 0 |
| GZH | 31 | GZH_MODAL | C | 2 | 0 | Modalidade | Modalidad | Mode | Modalidade | Modalidad | Mode | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | 01=Rodoviario;02=Aereo;03=Aquaviario;04=Ferroviario;05=Dutoviario;06=Multimodal | 01=Terrestre;02=Aéreo;03=Hidroviario;04=Ferroviario;05=Por tuberías;06=Multimodal | 01=Road;02=Air;03=Water;04=Train;05=Pipeline;06=Multimodal | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88050 | 0 |
| GZH | 32 | GZH_TPFRET | C | 2 | 0 | Fretamento | Fletamento | Freight | Fretamento | Fletamento | Freight | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | 01=Continuo;02=Eventual | 01=Continuo;02=Eventual | 01=Continuous;02=Eventual | - | - | - | - | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88051 | 0 |
| GZH | 33 | GZH_DSAIDA | D | 8 | 0 | Data Saida | Fecha salida | Outflow Date | Data Saida | Fecha salida | Outflow Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88052 | 0 |
| GZH | 34 | GZH_HSAIDA | C | 8 | 0 | Hora Saida | Hora salida | Outflow Time | Hora Saida | Hora salida | Outflow Time | @! 99:99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88053 | 0 |
| GZH | 35 | GZH_EVENTO | C | 2 | 0 | Evento | Evento | Event | Evento | Evento | Event | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | 01=Anular;02=Substituir;03=Complementar | 01=Anular;02=Sustituir;03=Complementar | 01=Cancel;02=Replace;03=Complement | - | - | - | - | 4 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88054 | 0 |
| GZH | 36 | GZH_CHVANU | C | 44 | 0 | Chave de Anu | Clave Anual | Canc Key | Chave de Anu | Clave Anual | Canc Key | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 4 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88055 | 0 |
| GZH | 37 | GZH_CODGQ2 | C | 6 | 0 | Lote Taxas | Lote Tasas | Rate Batch | COD Lote Taxas | CÓD Lote Tasas | Rate Batch COD | @! | - | x x x x x x x x x x x x x x x x | - | CODGQ2 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88056 | 0 |
| GZH | 38 | GZH_PRODUT | C | 15 | 0 | Cod. Produto | Cód. Product | Prod,Cd. | Codigo do Produto | Cód Producto | Product Code | @! | ExistCpo("SB1") | x x x x x x x x x x x x x x x x | - | - | 1 | x x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 88057 | 0 |
| GZH | 39 | GZH_QUANT | N | 11 | 2 | Quantidade | Cantidad | Quantity | Quantidade do Produto | Cantid. Del producto | Products Quantity | @E 99999999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 88058 | 0 |
| GZH | 40 | GZH_TOTAL | N | 16 | 2 | Vlr. Total | Val. Total | Total Vl | Valor toal | Valor total | Total Value | @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 x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88059 | 0 |
| GZH | 41 | GZH_VLUNIT | N | 14 | 2 | Vlr.Unitario | Val.Unitario | Un.Vl. | Valor Unitario | Valor unitario | Unitary Value | @E 99,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 88060 | 0 |
| GZH | 42 | GZH_TES | C | 3 | 0 | Tipo Saida | Tipo de sali | Outf.Tp. | Tipo de Saida da nota | Tipo de salida de la fact | Invoice Outflow Type | @9 | existcpo("SF4") | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 88061 | 0 |
| GZH | 43 | GZH_ORIGEM | C | 15 | 0 | Rot. Origem | Proc. Origen | Origin Rot. | Rotina oriem CTE-Os | Rutina oriem CTE-Os | CTE-OS Origin Routine | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 88062 | 0 |
| GZH | 44 | GZH_NFORI | C | 9 | 0 | NF Origem | Fact Origen | Orig. Invc. | Nota Fiscal Origem | Factura origen | Origin Invoice | @! | - | x 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 | 2 | - | - | - | 88063 | 0 |
| GZH | 45 | GZH_SERORI | C | 3 | 0 | Serie Origem | Serie Origen | Origin Serie | Serie Origem | Serie Origen | Origin Series | @! | - | x 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 | 2 | - | - | - | 88064 | 0 |
| GZH | 46 | GZH_NFF2S | C | 9 | 0 | NF Ori a Sub | Fact Ori a S | Orig Inv to | NF Original a Substituir | Fact Orig a sustituir | Original Invoice to Repla | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 018 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88065 | 0 |
| GZH | 47 | GZH_SERF2S | C | 3 | 0 | Ser Ori Sub | Ser Ori Sus | Orig Ser Rep | Serie Orig a Substituir | Serie Orig a sustituir | Orig Series to Replace | !!! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 094 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 88066 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GZH | 1 | GZH_FILIAL+GZH_NOTA+GZH_SERIE+GZH_CLIENT+GZH_LOJA+GZH_ORIGEM | Nota Fiscal + Serie + Cliente + Loja + Rot. Origem | Factura + Serie + Cliente + Tienda + Proc. Origen | Invoice + Series + Customer + Store + Origin Rot. | S | - | - | S | 2 | 3 | - | 13018 | 0 |
Ela é utilizada para controle cte-os 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
GZH_FILIAL,
GZH_NOTA,
GZH_SERIE,
GZH_CLIENT,
GZH_LOJA,
GZH_NOME,
GZH_UMUINI,
GZH_CMUINI,
GZH_DMUINI,
GZH_UMUFIM,
GZH_CMUFIM,
GZH_DMUFIM,
GZH_VEIC,
GZH_PLACA,
GZH_RENAVA,
GZH_UFVEI,
GZH_INFQ,
GZH_UFPER,
GZH_AUTTAF,
GZH_REGEST,
GZH_STATUS,
GZH_OBSNF,
GZH_MSGFIS,
GZH_XMLCTE,
GZH_XMLAUT,
GZH_XMLERR,
GZH_CHVCTE,
GZH_PROTCA,
GZH_PEDIDO,
GZH_COMPVL,
GZH_MODAL,
GZH_TPFRET,
GZH_DSAIDA,
GZH_HSAIDA,
GZH_EVENTO,
GZH_CHVANU,
GZH_CODGQ2,
GZH_PRODUT,
GZH_QUANT,
GZH_TOTAL,
GZH_VLUNIT,
GZH_TES,
GZH_ORIGEM,
GZH_NFORI,
GZH_SERORI,
GZH_NFF2S,
GZH_SERF2S
FROM GZH
WHERE
D_E_L_E_T_ = ' '
AND GZH_FILIAL = 'VALOR'
AND GZH_NOTA = 'VALOR'
AND GZH_SERIE = 'VALOR'
AND GZH_CLIENT = 'VALOR'
AND GZH_LOJA = 'VALOR'
AND GZH_NOME = 'VALOR'
AND GZH_UMUINI = 'VALOR'
AND GZH_CMUINI = 'VALOR'
AND GZH_DMUINI = 'VALOR'
AND GZH_UMUFIM = 'VALOR'
AND GZH_CMUFIM = 'VALOR'
AND GZH_DMUFIM = 'VALOR'
AND GZH_VEIC = 'VALOR'
AND GZH_PLACA = 'VALOR'
AND GZH_RENAVA = 'VALOR'
AND GZH_UFVEI = 'VALOR'
AND GZH_INFQ = 0
AND GZH_UFPER = 'VALOR'
AND GZH_AUTTAF = 'VALOR'
AND GZH_REGEST = 'VALOR'
AND GZH_STATUS = 'VALOR'
AND GZH_CHVCTE = 'VALOR'
AND GZH_PROTCA = 'VALOR'
AND GZH_PEDIDO = 'VALOR'
AND GZH_COMPVL = 'VALOR'
AND GZH_MODAL = 'VALOR'
AND GZH_TPFRET = 'VALOR'
AND GZH_DSAIDA BETWEEN '20260501' AND '20260531'
AND GZH_HSAIDA = 'VALOR'
AND GZH_EVENTO = 'VALOR'
AND GZH_CHVANU = 'VALOR'
AND GZH_CODGQ2 = 'VALOR'
AND GZH_PRODUT = 'VALOR'
AND GZH_QUANT = 0
AND GZH_TOTAL = 0
AND GZH_VLUNIT = 0
AND GZH_TES = 'VALOR'
AND GZH_ORIGEM = 'VALOR'
AND GZH_NFORI = 'VALOR'
AND GZH_SERORI = 'VALOR'
AND GZH_NFF2S = 'VALOR'
AND GZH_SERF2S = 'VALOR'