Calculo do Plano de Saude
A tabela RHR faz parte do sistema ERP Protheus da TOTVS e é utilizada para calculo do plano de saude.
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 RHR 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 RHR, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | RHR |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | RHR990 |
| X2_NOME | Calculo do Plano de Saude |
| X2_NOMESPA | Calculo de Plan de Salud |
| X2_NOMEENG | Health Plan Calculation |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | RHR_FILIAL+RHR_MAT+RHR_ORIGEM+RHR_CODIGO+RHR_TPLAN+RHR_TPFORN+RHR_CODFOR+RHR_TPPLAN+RHR_PLANO+RHR_PD+RHR_COMPPG |
| X2_PYME | S |
| X2_MODULO | 7 |
| 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_ | 7937 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RHR | 01 | RHR_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 | SRA->RA_FILIAL | - | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 124775 | 0 |
| RHR | 02 | RHR_MAT | C | 6 | 0 | Matricula | Matricula | Registration | Matricula do Funcionário | Matricula del empleado | Employee Registration | @! | - | x x x x x x x x x x x x x x x | - | SRA | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 121 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 124776 | 0 |
| RHR | 03 | RHR_DATA | D | 8 | 0 | Data Calculo | Fech Calculo | Calc. Date | Data do Calculo | Fecha del Calculo | Calculation Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 124777 | 0 |
| RHR | 04 | RHR_ORIGEM | C | 1 | 0 | Origem Calcu | Origen Calc | Calc. Origin | Origem do Calculo | Origen del Calculo | Calculation Origin | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | A | R | - | - | 1=Titular;2=Dependente;3=Agregado | 1=Titular;2=Dependiente;3=Agregado | 1=Holder;2=Dependant;3=Agregate | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 124778 | 0 |
| RHR | 05 | RHR_CODIGO | C | 2 | 0 | Seq. Dep/Agr | Sec. Dep/Ag | SeqDepGroupd | Seq/Codigo Depend/Agregad | Sec/Codigo Depend/Agrega | Seq/DependCode/Grouped | @! | - | x x x x x x x x x x x x x x x x | - | RHODAG | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 124779 | 0 |
| RHR | 06 | RHR_TPLAN | C | 1 | 0 | Tipo Lancam. | Tipo Asiento | Entry Type | Tipo do Lancamento | Tipo del Asiento | Type of Entry | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | A | R | - | - | 1=Plano;2=Co-participacao;3=Reembolso | 1=Plan;2=Co-participacion;3=Reembolso | 1=Plan;2=Coparticipation;3=Reimbursement | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 124780 | 0 |
| RHR | 07 | RHR_TPFORN | C | 1 | 0 | Tipo | Tipo | Type | Tipo Fornecedor | Tipo Proveedor | Supplier Type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | A | R | - | - | 1=Ass. Medica;2=Ass. Odontologica | 1=Asis. Medica;2=Asis. Odontologica | 1=Health Plan;2=Dental Plan | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 124781 | 0 |
| RHR | 08 | RHR_CODFOR | C | 3 | 0 | Cod. Fornec. | Cod. Proveed | SupplierCode | Codigo Fornecedor | Codigo Proveedor | Supplier Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 124782 | 0 |
| RHR | 09 | RHR_TPPLAN | C | 1 | 0 | Tipo Plano | Tipo Plan | Plan type | Tipo do Plano | Tipo de Plan | Type of Plan | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | 1=Faixa Salarial;2=Faixa Etaria;3=Valor Fixo;4=% S/ Salario;5=Salarial/Etaria;6=Salarial/Tempo | 1=Rango salarial;2=Rango de edad;3=Valor fijo;4=% S/ Sueldo;5=Sueldo/Edad;6=Sueldo/Tiempo | 1=Salary Range;2=Age Range;3=Fixed Value;4=% W/out Salary;5=Salary/Age;6=Salary/Time | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 124783 | 0 |
| RHR | 10 | RHR_PLANO | C | 2 | 0 | Cod. Plano | Cod. Plan | Plan Code | Codigo do Plano | Codigo del Plan | Code of Plan | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 124784 | 0 |
| RHR | 11 | RHR_PD | C | 3 | 0 | Verba | Concepto | Funds | Verba | Concepto | Allocated Funds | @! | - | x x x x x x x x x x x x x x x x | - | SRV | 1 | x x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 124785 | 0 |
| RHR | 12 | RHR_VLRFUN | N | 12 | 2 | Vlr Funcion. | Vlr Empleado | EmployeeValu | Valor Funcionario | Valor Empleasdo | Employee Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 124786 | 0 |
| RHR | 13 | RHR_VLREMP | N | 12 | 2 | Vlr Empresa | Vlr Empresa | CompanyValue | Valor Empresa | Valor Empresa | Company Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 124787 | 0 |
| RHR | 14 | RHR_COMPPG | C | 6 | 0 | Competencia | Competencia | Jurisdiction | Competencia de Pagamento | Competencia de Pago | Payment Jurisdiction | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 124788 | 0 |
| RHR | 15 | RHR_TIPO | C | 1 | 0 | Tipo | Tipo | Type | Tipo da Informacao | Tipo de Informacion | Information Type | @! | Pertence("12 ") | x x x x x x x x x x x x x x x x | "1" | - | 1 | x | - | - | - | N | A | R | - | - | 1=Calculado;2=Modificado | 1=Calculado;2=Modificado | 1=Calculated;2=Changed | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 124789 | 0 |
| RHR | 16 | RHR_INTFOL | C | 1 | 0 | Integr.Folha | Integr.Plani | Integr.Payr. | Integr.c/ folha de pagto | Integr.c/ planilla de pag | Integr. w/ Payroll | @! | Pertence("12") | x x x x x x x x x x x x x x x x | "2" | - | 1 | xx x | - | - | - | S | V | R | - | - | 1=Sim;2=Não | 1=Si;2=No | 1=Yes;2=No | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 124790 | 0 |
| RHR | 17 | RHR_PLNUCO | C | 12 | 0 | Nr.Cobranca | Nº Cobranza | Billing no. | Número de Cobrança | Número de cobranza | Billing number | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 124791 | 0 |
| RHR | 18 | RHR_CODCCT | C | 8 | 0 | Cód. CCT | Cód. CCT | CCT Code | Código CCT | Código CCT | CCT Code | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 155 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 124792 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RHR | 1 | RHR_FILIAL+RHR_MAT+RHR_COMPPG+RHR_ORIGEM+RHR_CODIGO+RHR_TPLAN+RHR_TPFORN+RHR_CODFOR+RHR_TPPLAN+RHR_PLANO+RHR_PD | Matricula + Competencia + Origem Calcu + Seq. Dep/Agr + Tipo Lancam. + | Matricula + Competencia + Origen Calc + Sec. Dep/Ag + Tipo Asiento + T | Registration + Jurisdiction + Calc. Origin + SeqDepGroupd + Entry Type | S | - | - | S | 2 | 3 | - | 18222 | 0 |
Ela é utilizada para calculo do plano de saude 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
RHR_FILIAL,
RHR_MAT,
RHR_DATA,
RHR_ORIGEM,
RHR_CODIGO,
RHR_TPLAN,
RHR_TPFORN,
RHR_CODFOR,
RHR_TPPLAN,
RHR_PLANO,
RHR_PD,
RHR_VLRFUN,
RHR_VLREMP,
RHR_COMPPG,
RHR_TIPO,
RHR_INTFOL,
RHR_PLNUCO,
RHR_CODCCT
FROM RHR
WHERE
D_E_L_E_T_ = ' '
AND RHR_FILIAL = 'VALOR'
AND RHR_MAT = 'VALOR'
AND RHR_DATA BETWEEN '20260401' AND '20260430'
AND RHR_ORIGEM = 'VALOR'
AND RHR_CODIGO = 'VALOR'
AND RHR_TPLAN = 'VALOR'
AND RHR_TPFORN = 'VALOR'
AND RHR_CODFOR = 'VALOR'
AND RHR_TPPLAN = 'VALOR'
AND RHR_PLANO = 'VALOR'
AND RHR_PD = 'VALOR'
AND RHR_VLRFUN = 0
AND RHR_VLREMP = 0
AND RHR_COMPPG = 'VALOR'
AND RHR_TIPO = 'VALOR'
AND RHR_INTFOL = 'VALOR'
AND RHR_PLNUCO = 'VALOR'
AND RHR_CODCCT = 'VALOR'