Apuração de Cliente – Vendas
A tabela G82 faz parte do sistema ERP Protheus da TOTVS e é utilizada para apuração de cliente – vendas.
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 G82 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 G82, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | G82 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | G82990 |
| X2_NOME | Apuração de Cliente – Vendas |
| X2_NOMESPA | Cálculo de cliente – Ventas |
| X2_NOMEENG | Customer Calculation - Sales |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | C |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | G82_FILIAL+G82_CODAPU+G82_SEGNEG+G82_CODPRD |
| X2_PYME | N |
| X2_MODULO | 89 |
| X2_DISPLAY | G82_CODAPU+G82_SEGNEG+G82_CODPRD |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 2 |
| 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_ | 4733 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G82 | 01 | G82_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 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76428 | 0 |
| G82 | 02 | G82_CODAPU | C | 21 | 0 | Código | Código | Code | Código da Apuração | Código del cálculo | Calculation Code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76429 | 0 |
| G82 | 03 | G82_SEGNEG | C | 1 | 0 | Seg. Negócio | Seg. Negócio | Bus Seg | Segmento de negócio | Segmento de negocio | Business Segment | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76430 | 0 |
| G82 | 04 | G82_CODPRD | C | 15 | 0 | Cód. Prod. | Cód. Prod. | Prod Code | Código do Produto | Código del producto | Product Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 030 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 76431 | 0 |
| G82 | 05 | G82_DSCPRD | C | 40 | 0 | Desc. Prod. | Desc. Prod. | Prod Desc | Descrição do Produto | Descripción del poducto | Product Description | @! | - | x x x x x x x x x x x x x x x x | IIf(!INCLUI,Posicione("SB1",1,XFilial("SB1")+G82->G82_CODPRD,"B1_DESC"),"") | - | 1 | x x xx x | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 76432 | 0 |
| G82 | 06 | G82_VLPRD | N | 16 | 2 | Valor Venda | Valor venta | Sales Vl | Valor apurado das vendas | Valor calculado de ventas | Sales calculated 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 | xx | - | S | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76433 | 0 |
| G82 | 07 | G82_PERDES | N | 6 | 2 | % Desconto | % Descuento | % Discount | Percentual de desconto | Porcentaje de descuento | Discount Percentage | @E 999.99 | Positivo() .And. FwFldGet("G82_PERDES") <= 100 | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76434 | 0 |
| G82 | 08 | G82_VLDESC | N | 16 | 2 | Vlr. Descont | Val. Descuen | Disc Vl | Valor do desconto venda | Valor del descuento venta | Sales discount 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 | xx | - | S | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76435 | 0 |
| G82 | 09 | G82_PERCTX | N | 6 | 2 | % Tx. Adic. | % Ts Adic. | % Add Rate | Percentual da taxa adicio | Porcentaje de tasa adicio | Additional Rate Percentag | @E 999.99 | Positivo() .And. FwFldGet("G82_PERCTX") <= 100 | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76436 | 0 |
| G82 | 10 | G82_VLTXAD | N | 6 | 2 | Vlr. Tx. Ad. | Val. Ts. Ad. | Add Rate Vl | Valor da taxa adicional | Valor de tasa adicional | Additional rate Value | @E 999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | S | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76437 | 0 |
| G82 | 11 | G82_TOTAL | N | 16 | 2 | Total Liq. | Total neto | Net Total | Total liquido da venda do | Total neto de venta del | Sales net total of | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | S | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76438 | 0 |
| G82 | 12 | G82_RATPAD | C | 1 | 0 | Rateio Pad. | Prorrat Est. | Stand Apport | Rateio Padrão | Prorrateo estándar | Standard Apportion | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76439 | 0 |
| G82 | 13 | G82_NATURE | C | 10 | 0 | Natureza | Modalidad | Class | Natureza | Modalidad | Class | - | TurVldNat() | x x x x x x x x x x x x x x x x | - | SED | 1 | x x xx x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 76440 | 0 |
| G82 | 14 | G82_DSCNAT | C | 30 | 0 | Desc. Natur. | Desc. Modal. | Nat Desc | Descrição da Natureza | Descripción de la modalid | Nature Description | @! | - | x x x x x x x x x x x x x x x x | IIf(!INCLUI,Posicione("SED",1,XFilial("SED")+G82->G82_NATURE,"ED_DESCRIC"),"") | - | 1 | x x xx x | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 76441 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G82 | 1 | G82_FILIAL+G82_CODAPU+G82_CODPRD | Código + Cód. Prod. | Código + Cód. Prod. | Code + Prod Code | S | - | - | S | 2 | 3 | - | 11205 | 0 |
Ela é utilizada para apuração de cliente – vendas 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
G82_FILIAL,
G82_CODAPU,
G82_SEGNEG,
G82_CODPRD,
G82_DSCPRD,
G82_VLPRD,
G82_PERDES,
G82_VLDESC,
G82_PERCTX,
G82_VLTXAD,
G82_TOTAL,
G82_RATPAD,
G82_NATURE,
G82_DSCNAT
FROM G82
WHERE
D_E_L_E_T_ = ' '
AND G82_FILIAL = 'VALOR'
AND G82_CODAPU = 'VALOR'
AND G82_SEGNEG = 'VALOR'
AND G82_CODPRD = 'VALOR'
AND G82_DSCPRD = 'VALOR'
AND G82_VLPRD = 0
AND G82_PERDES = 0
AND G82_VLDESC = 0
AND G82_PERCTX = 0
AND G82_VLTXAD = 0
AND G82_TOTAL = 0
AND G82_RATPAD = 'VALOR'
AND G82_NATURE = 'VALOR'
AND G82_DSCNAT = 'VALOR'