---
title: SeverancePayHypothesisResult
slug: oip-next/r2zui7naye-1exfdeovgh
createdAt: 2024-02-21T13:25:51.000Z
---

# SeverancePayHypothesisResult

## Description

L’entité SeverancePayHypothesisResult contient les résultats du simulateur concernant le passif social d’une entreprise. Les calculs concerneront aussi bien l’entreprise que les salariés. Dans ce dernier cas, la propriété employeeId sera renseignée. Les notion de duration et de theoricalSocialChargeGain ne concerne que l’entreprise.

## Relations

### Ascendantes

| Entité                 | Propriété                     |
| ---------------------- | ----------------------------- |
| SeverancePayHypothesis | severancePayHypothesisResults |

### Descendantes

| Entité  | Propriété |
| ------- | --------- |
| History | history   |

## Liste des propriétés

| Nom                                       | Type                                                        | Dernière version modifiée | Description                                                                                                                                                                                                      | Getter                                                                   | Setter                                                                   | Deprecated |
| ----------------------------------------- | ----------------------------------------------------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ---------- |
| createdAt                                 | `Date`                                                      |                           | Date de création de l'entité `SeverancePayHypothesisResult`                                                                                                                                                      | getSeverancePayHypothesisResultCreatedAt                                 | Lecture seule                                                            | -          |
| createdBy                                 | `String`                                                    |                           | Utilisateur à l'origine de la création de l'entité `SeverancePayHypothesisResult`                                                                                                                                | getSeverancePayHypothesisResultCreatedBy                                 | Lecture seule                                                            | -          |
| customizedLeavingOptionIndicator          | `Number`                                                    | 2.8.0                     | Il s’agit de l'Indicateur option de départ personnalisé                                                                                                                                                          | getSeverancePayHypothesisResultCustomizedLeavingOptionIndicator          | setSeverancePayHypothesisResultCustomizedLeavingOptionIndicator          | -          |
| employeeId                                | `String`                                                    | 2.7.0                     | Il s’agit de l’identifiant du salarié. Cela permet de faire le lien avec le tableau d’employé initialement chargé.                                                                                               | getSeverancePayHypothesisResultEmployeeId                                | setSeverancePayHypothesisResultEmployeeId                                | -          |
| employeeSalaryScale                       | `String`                                                    | 2.7.0                     | Il s’agit du barème utilisé pour le salarié afin de calculer son passif social.                                                                                                                                  | getSeverancePayHypothesisResultEmployeeSalaryScale                       | setSeverancePayHypothesisResultEmployeeSalaryScale                       | -          |
| finalCareerSalary                         | `Number`                                                    | 2.7.0                     | Il s’agit du salaire au terme de la carrière pour un salarié.                                                                                                                                                    | getSeverancePayHypothesisResultFinalCareerSalary                         | setSeverancePayHypothesisResultFinalCareerSalary                         | -          |
| finalCareerSeniority                      | `Number`                                                    | 2.7.0                     | Il s’agit de l’ancienneté d’un salarié au terme de sa carrière.                                                                                                                                                  | getSeverancePayHypothesisResultFinalCareerSeniority                      | setSeverancePayHypothesisResultFinalCareerSeniority                      | -          |
| financialRefresh                          | `Number`                                                    | 2.7.0                     | Il s’agit de l’actualisation financière pour un salarié.                                                                                                                                                         | getSeverancePayHypothesisResultFinancialRefresh                          | setSeverancePayHypothesisResultFinancialRefresh                          | -          |
| hireDate                                  | `Date`                                                      | 2.7.0                     | Il s’agit de la date d’embauche pour un salarié.                                                                                                                                                                 | getSeverancePayHypothesisResultHireDate                                  | setSeverancePayHypothesisResultHireDate                                  | -          |
| id                                        | `String`                                                    |                           | Identifiant unique de l'entité `SeverancePayHypothesisResult`                                                                                                                                                    | getSeverancePayHypothesisResultId                                        | Lecture seule                                                            | -          |
| lifeExpectancy                            | `Number`                                                    | 2.7.0                     | Il s’agit de la probabilité de vie pour un salarié. Cette donnée est issue de tables statistiques de l’INSEE. On utilise aussi la notion de table de mortalité pour avoir l’information.                         | getSeverancePayHypothesisResultLifeExpectancy                            | setSeverancePayHypothesisResultLifeExpectancy                            | -          |
| monthsOfService                           | `Number`                                                    | 2.8.0                     | Il s'agit de l'ancienneté totale en mois pour un salarié au sein de la même CCN pour l'ensemble des entreprises dans lesquelles il a travaillé. Cette ancienneté sera utilisée pour calcul le passif social IFC. | getSeverancePayHypothesisResultMonthsOfService                           | setSeverancePayHypothesisResultMonthsOfService                           | -          |
| presenceExpentancy                        | `Number`                                                    | 2.7.0                     | Il s’agit de la probabilité de présence  pour un salarié.                                                                                                                                                        | getSeverancePayHypothesisResultPresenceExpentancy                        | setSeverancePayHypothesisResultPresenceExpentancy                        | -          |
| professionalCategoryGroup                 | `SeverancePayHypothesisResultProfessionalCategoryGroupEnum` | 2.7.0                     | Il s’agit du regroupement de catégorie IFC pour un salarié.                                                                                                                                                      | getSeverancePayHypothesisResultProfessionalCategoryGroup                 | setSeverancePayHypothesisResultProfessionalCategoryGroup                 | -          |
| refreshedExpectedSeverancePay             | `Number`                                                    | 2.7.0                     | Il s’agit de l'IFC Probable Actualisée pour un salarié.                                                                                                                                                          | getSeverancePayHypothesisResultRefreshedExpectedSeverancePay             | setSeverancePayHypothesisResultRefreshedExpectedSeverancePay             | -          |
| selectedRetirementDate                    | `Date`                                                      | 2.7.0                     | Il s’agit de la date de départ en retraite retenue pour un salarié.                                                                                                                                              | getSeverancePayHypothesisResultSelectedRetirementDate                    | setSeverancePayHypothesisResultSelectedRetirementDate                    | -          |
| selectedSeniorityYear                     | `Number`                                                    | 2.7.0                     | Il s’agit du nombre d’années d’ancienneté retenues pour un salarié.                                                                                                                                              | getSeverancePayHypothesisResultSelectedSeniorityYear                     | setSeverancePayHypothesisResultSelectedSeniorityYear                     | -          |
| seniorityProrata                          | `Number`                                                    | 2.7.0                     | Il s’agit du prorata ancienneté pour un salarié.                                                                                                                                                                 | getSeverancePayHypothesisResultSeniorityProrata                          | setSeverancePayHypothesisResultSeniorityProrata                          | -          |
| severancePayAmount                        | `Number`                                                    | 2.7.0                     | Il s’agit du montant du passif social pour le salarié.                                                                                                                                                           | getSeverancePayHypothesisResultSeverancePayAmount                        | setSeverancePayHypothesisResultSeverancePayAmount                        | -          |
| severancePayIncludingSocialCharges        | `Number`                                                    | 2.7.0                     | Il s’agit de l'IFC dont charges sociales pour un salarié.                                                                                                                                                        | getSeverancePayHypothesisResultSeverancePayIncludingSocialCharges        | setSeverancePayHypothesisResultSeverancePayIncludingSocialCharges        | -          |
| socialCharges                             | `Number`                                                    | 2.7.0                     | Il s’agit du montant des charges sociales à payer jusqu'à la retraite pour un salarié.                                                                                                                           | getSeverancePayHypothesisResultSocialCharges                             | setSeverancePayHypothesisResultSocialCharges                             | -          |
| theoricalSeverancePayWithoutSocialCharges | `Number`                                                    | 2.7.0                     | Il s’agit de l’IFC théorique (hors charges) pour un salarié.                                                                                                                                                     | getSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges | setSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges | -          |
| updatedAt                                 | `Date`                                                      |                           | Date de modification de l'entité `SeverancePayHypothesisResult`                                                                                                                                                  | getSeverancePayHypothesisResultUpdatedAt                                 | Lecture seule                                                            | -          |
| updatedBy                                 | `String`                                                    |                           | Utilisateur à l'origine de la modification de l'entité `SeverancePayHypothesisResult`                                                                                                                            | getSeverancePayHypothesisResultUpdatedBy                                 | Lecture seule                                                            | -          |
| yearsOfService                            | `Number`                                                    | 2.7.0                     | Il s’agit de l’ancienneté totale pour un salarié au sein de la même CCN pour l’ensemble des entreprises dans lesquelles il a travaillé. Cette ancienneté sera utilisée pour calcul le passif social IFC.         | getSeverancePayHypothesisResultYearsOfService                            | setSeverancePayHypothesisResultYearsOfService                            | -          |

## Enums

### SeverancePayHypothesisResultProfessionalCategoryGroupEnum

- `SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SENIOR_EXECUTIVE_EMPLOYEE`
- `SeverancePayHypothesisResultProfessionalCategoryGroupEnum.EXECUTIVE_EMPLOYEE`
- `SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SUPERVISOR`
- `SeverancePayHypothesisResultProfessionalCategoryGroupEnum.EMPLOYEE`
- `SeverancePayHypothesisResultProfessionalCategoryGroupEnum.WORKER`
- `SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SALES_REPRESENTATIVE`

## Exemple

```javascript
import { Entities } from '@fasstech/oip-core';
import { getHypothesisId } from '@fasstech/oip-core/entities/hypothesis';
import { getOfferId } from '@fasstech/oip-core/entities/offer';
import { getProjectId } from '@fasstech/oip-core/entities/project';
import { getSeverancePayHypothesisResultCustomizedLeavingOptionIndicator, getSeverancePayHypothesisResultEmployeeId, getSeverancePayHypothesisResultEmployeeSalaryScale, getSeverancePayHypothesisResultFinalCareerSalary, getSeverancePayHypothesisResultFinalCareerSeniority, getSeverancePayHypothesisResultFinancialRefresh, getSeverancePayHypothesisResultHireDate, getSeverancePayHypothesisResultLifeExpectancy, getSeverancePayHypothesisResultMonthsOfService, getSeverancePayHypothesisResultPresenceExpentancy, getSeverancePayHypothesisResultProfessionalCategoryGroup, getSeverancePayHypothesisResultRefreshedExpectedSeverancePay, getSeverancePayHypothesisResultSelectedRetirementDate, getSeverancePayHypothesisResultSelectedSeniorityYear, getSeverancePayHypothesisResultSeniorityProrata, getSeverancePayHypothesisResultSeverancePayAmount, getSeverancePayHypothesisResultSeverancePayIncludingSocialCharges, getSeverancePayHypothesisResultSocialCharges, getSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges, getSeverancePayHypothesisResultYearsOfService, getseverancePayHypothesisResultId, setSeverancePayHypothesisResultCustomizedLeavingOptionIndicator, setSeverancePayHypothesisResultEmployeeId, setSeverancePayHypothesisResultEmployeeSalaryScale, setSeverancePayHypothesisResultFinalCareerSalary, setSeverancePayHypothesisResultFinalCareerSeniority, setSeverancePayHypothesisResultFinancialRefresh, setSeverancePayHypothesisResultHireDate, setSeverancePayHypothesisResultLifeExpectancy, setSeverancePayHypothesisResultMonthsOfService, setSeverancePayHypothesisResultPresenceExpentancy, setSeverancePayHypothesisResultProfessionalCategoryGroup, setSeverancePayHypothesisResultRefreshedExpectedSeverancePay, setSeverancePayHypothesisResultSelectedRetirementDate, setSeverancePayHypothesisResultSelectedSeniorityYear, setSeverancePayHypothesisResultSeniorityProrata, setSeverancePayHypothesisResultSeverancePayAmount, setSeverancePayHypothesisResultSeverancePayIncludingSocialCharges, setSeverancePayHypothesisResultSocialCharges, setSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges, setSeverancePayHypothesisResultYearsOfService } from '@fasstech/oip-core/entities/severancePayHypothesisResult';
import { SeverancePayHypothesisResultProfessionalCategoryGroupEnum } from '@fasstech/oip-core/entities/severancePayHypothesisResult/enums';

(async () => {
  let ProjectEntity = await Entities('Project').get({ id: projectId });
  let OfferEntity = await Entities('Offer').create();
  let HypothesisEntity = await Entities('Hypothesis').create();
  let SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesis').get(HypothesisEntity);
  const SeverancePayHypothesisResultEntity = await Entities('SeverancePayHypothesisResult').create();
  
  setSeverancePayHypothesisResultCustomizedLeavingOptionIndicator(99, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultEmployeeId('employeeId', SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultEmployeeSalaryScale('employeeSalaryScale', SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultFinalCareerSalary(102, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultFinalCareerSeniority(102, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultFinancialRefresh(102, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultHireDate(new Date('2017-01-01'), SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultLifeExpectancy(108, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultMonthsOfService(109, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultPresenceExpentancy(112, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultProfessionalCategoryGroup(SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SUPERVISOR, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultRefreshedExpectedSeverancePay(114, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultSelectedRetirementDate(new Date('2017-01-01'), SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultSelectedSeniorityYear(115, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultSeniorityProrata(115, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultSeverancePayAmount(115, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultSeverancePayIncludingSocialCharges(115, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultSocialCharges(115, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges(116, SeverancePayHypothesisResultEntity);
  setSeverancePayHypothesisResultYearsOfService(121, SeverancePayHypothesisResultEntity);
  
  SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesisResult').save(SeverancePayHypothesisEntity, SeverancePayHypothesisResultEntity);
  HypothesisEntity = await Entities('SeverancePayHypothesis').save(HypothesisEntity, SeverancePayHypothesisEntity);
  OfferEntity = await Entities('Hypothesis').save(OfferEntity, HypothesisEntity);
  ProjectEntity = await Entities('Offer').save(ProjectEntity, OfferEntity);
  await Entities('Project').save(ProjectEntity);
  
  const ProjectEntityToTest = await Entities('Project').get({ id: getProjectId(ProjectEntity) });
  const OfferEntityToTest = await Entities('Offer').get(ProjectEntityToTest, getOfferId(OfferEntity));
  const HypothesisEntityToTest = await Entities('Hypothesis').get(OfferEntityToTest, getHypothesisId(HypothesisEntity));
  const SeverancePayHypothesisEntityToTest = await Entities('SeverancePayHypothesis').get(HypothesisEntityToTest);
  const SeverancePayHypothesisResultEntityToTest = await Entities('SeverancePayHypothesisResult').get(SeverancePayHypothesisEntityToTest, getSeverancePayHypothesisResultId(SeverancePayHypothesisResultEntity));
  
  getSeverancePayHypothesisResultCustomizedLeavingOptionIndicator(SeverancePayHypothesisResultEntityToTest); // 99
  getSeverancePayHypothesisResultEmployeeId(SeverancePayHypothesisResultEntityToTest); // 'employeeId'
  getSeverancePayHypothesisResultEmployeeSalaryScale(SeverancePayHypothesisResultEntityToTest); // 'employeeSalaryScale'
  getSeverancePayHypothesisResultFinalCareerSalary(SeverancePayHypothesisResultEntityToTest); // 102
  getSeverancePayHypothesisResultFinalCareerSeniority(SeverancePayHypothesisResultEntityToTest); // 102
  getSeverancePayHypothesisResultFinancialRefresh(SeverancePayHypothesisResultEntityToTest); // 102
  getSeverancePayHypothesisResultHireDate(SeverancePayHypothesisResultEntityToTest); // new Date('2017-01-01')
  getSeverancePayHypothesisResultLifeExpectancy(SeverancePayHypothesisResultEntityToTest); // 108
  getSeverancePayHypothesisResultMonthsOfService(SeverancePayHypothesisResultEntityToTest); // 109
  getSeverancePayHypothesisResultPresenceExpentancy(SeverancePayHypothesisResultEntityToTest); // 112
  getSeverancePayHypothesisResultProfessionalCategoryGroup(SeverancePayHypothesisResultEntityToTest); // SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SUPERVISOR
  getSeverancePayHypothesisResultRefreshedExpectedSeverancePay(SeverancePayHypothesisResultEntityToTest); // 114
  getSeverancePayHypothesisResultSelectedRetirementDate(SeverancePayHypothesisResultEntityToTest); // new Date('2017-01-01')
  getSeverancePayHypothesisResultSelectedSeniorityYear(SeverancePayHypothesisResultEntityToTest); // 115
  getSeverancePayHypothesisResultSeniorityProrata(SeverancePayHypothesisResultEntityToTest); // 115
  getSeverancePayHypothesisResultSeverancePayAmount(SeverancePayHypothesisResultEntityToTest); // 115
  getSeverancePayHypothesisResultSeverancePayIncludingSocialCharges(SeverancePayHypothesisResultEntityToTest); // 115
  getSeverancePayHypothesisResultSocialCharges(SeverancePayHypothesisResultEntityToTest); // 115
  getSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges(SeverancePayHypothesisResultEntityToTest); // 116
  getSeverancePayHypothesisResultYearsOfService(SeverancePayHypothesisResultEntityToTest); // 121
})();
```
