---
title: SeverancePayFundingPlan
slug: oip-next/emrrzabpmfxeimofuyoq
createdAt: 2024-02-21T13:25:54.000Z
---

# SeverancePayFundingPlan

## Description

L’entité SeverancePayFundingPlan contient les données issues des résultats du simulateur pour le calcul de l'IFC théorique.

## Relations

### Ascendantes

| Entité                 | Propriété                |
| ---------------------- | ------------------------ |
| SeverancePayHypothesis | severancePayFundingPlans |

### Descendantes

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

## Liste des propriétés

| Nom            | Type     | Dernière version modifiée | Description                                                                      | Getter                                   | Setter                                   | Deprecated |
| -------------- | -------- | ------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------- |
| allocationYear | `String` | 2.7.0                     | Il s’agit de l’année de répartition du plan de financement.                      | getSeverancePayFundingPlanAllocationYear | setSeverancePayFundingPlanAllocationYear | -          |
| amount         | `Number` | 2.7.0                     | Il s’agit du montant du plan de financement.                                     | getSeverancePayFundingPlanAmount         | setSeverancePayFundingPlanAmount         | -          |
| createdAt      | `Date`   |                           | Date de création de l'entité `SeverancePayFundingPlan`                           | getSeverancePayFundingPlanCreatedAt      | Lecture seule                            | -          |
| createdBy      | `String` |                           | Utilisateur à l'origine de la création de l'entité `SeverancePayFundingPlan`     | getSeverancePayFundingPlanCreatedBy      | Lecture seule                            | -          |
| employeeCount  | `Number` | 2.7.0                     | Il s’agit de l’effectif des salariés.                                            | getSeverancePayFundingPlanEmployeeCount  | setSeverancePayFundingPlanEmployeeCount  | -          |
| id             | `String` |                           | Identifiant unique de l'entité `SeverancePayFundingPlan`                         | getSeverancePayFundingPlanId             | Lecture seule                            | -          |
| updatedAt      | `Date`   |                           | Date de modification de l'entité `SeverancePayFundingPlan`                       | getSeverancePayFundingPlanUpdatedAt      | Lecture seule                            | -          |
| updatedBy      | `String` |                           | Utilisateur à l'origine de la modification de l'entité `SeverancePayFundingPlan` | getSeverancePayFundingPlanUpdatedBy      | Lecture seule                            | -          |

## Enums

Aucune enumération disponible pour cette entité.

## 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 { getSeverancePayFundingPlanAllocationYear, getSeverancePayFundingPlanAmount, getSeverancePayFundingPlanEmployeeCount, getseverancePayFundingPlanId, setSeverancePayFundingPlanAllocationYear, setSeverancePayFundingPlanAmount, setSeverancePayFundingPlanEmployeeCount } from '@fasstech/oip-core/entities/severancePayFundingPlan';

(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 SeverancePayFundingPlanEntity = await Entities('SeverancePayFundingPlan').create();
  
  setSeverancePayFundingPlanAllocationYear('allocationYear', SeverancePayFundingPlanEntity);
  setSeverancePayFundingPlanAmount(97, SeverancePayFundingPlanEntity);
  setSeverancePayFundingPlanEmployeeCount(101, SeverancePayFundingPlanEntity);
  
  SeverancePayHypothesisEntity = await Entities('SeverancePayFundingPlan').save(SeverancePayHypothesisEntity, SeverancePayFundingPlanEntity);
  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 SeverancePayFundingPlanEntityToTest = await Entities('SeverancePayFundingPlan').get(SeverancePayHypothesisEntityToTest, getSeverancePayFundingPlanId(SeverancePayFundingPlanEntity));
  
  getSeverancePayFundingPlanAllocationYear(SeverancePayFundingPlanEntityToTest); // 'allocationYear'
  getSeverancePayFundingPlanAmount(SeverancePayFundingPlanEntityToTest); // 97
  getSeverancePayFundingPlanEmployeeCount(SeverancePayFundingPlanEntityToTest); // 101
})();
```
