---
title: SeverancePayHypothesisSolutionFundingPlan
slug: oip-next/3br9-severancepayhypothesissolutionfundingplan
icon: {"lucideIcon":"📘"}
createdAt: 2024-07-01T09:19:39.000Z
---

# SeverancePayHypothesisSolutionFundingPlan

## Description

L'entité SeverancePayHypothesisSolutionFundingPlan contient les informations liées au plan de financement associé à une solution de financement.

## Relations

### Ascendantes

| Entité                         | Propriété                                  |
| ------------------------------ | ------------------------------------------ |
| SeverancePayHypothesisSolution | severancePayHypothesisSolutionFundingPlans |

### Descendantes

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

## Propriétés

| Nom                                         | Type     | Description                                                                                                         | Validateur | Lecture seule ? | Dépréciée ? | Dernière version modifiée |
| ------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- | ---------- | --------------- | ----------- | ------------------------- |
| annualDeposit                               | `Number` | Il s'agit du versement initial de l'année.                                                                          |            |                 |             | 2.9.0                     |
| companyTaxGains                             | `Number` | Il s'agit du gain d'impôts sur les sociétés pour l'entreprise.                                                      |            |                 |             | 2.9.0                     |
| departureNumber                             | `Number` | Il s'agit du nombre de départs.                                                                                     |            |                 |             | 2.9.0                     |
| potentialSeverancePay                       | `Number` | Il s'agit de l'IFC probable. Cela correspond au montant des engagements pour l'année.                               |            |                 |             | 2.9.0                     |
| year                                        | `String` | Il s'agit de l'année du plan de financement.                                                                        |            |                 |             | 2.9.0                     |
| yearEndBalance                              | `Number` | Il s'agit du montant en compte en fin d'année.                                                                      |            |                 |             | 2.9.0                     |
| yearEndInterestAmount                       | `Number` | Il s'agit du montant des intérêts en fin d'année.                                                                   |            |                 |             | 2.9.0                     |
| id                                          | `String` | Identifiant de l'entité `SeverancePayHypothesisSolutionFundingPlan`                                                 |            | X               |             |                           |
| code                                        | `String` | Codification fonctionnelle de l'entité `SeverancePayHypothesisSolutionFundingPlan`                                  |            |                 |             |                           |
| externalId                                  | `String` | Identifiant de l'entité `SeverancePayHypothesisSolutionFundingPlan` dans le système client                          |            |                 |             |                           |
| externalCode                                | `String` | Codification fonctionnelle de l'entité `SeverancePayHypothesisSolutionFundingPlan` dans le système client           |            |                 |             |                           |
| severancePayHypothesisSolutionFundingPlanId | `String` | Identifiant public de l'entité `SeverancePayHypothesisSolutionFundingPlan` dans l'OIP                               |            |                 |             |                           |
| label                                       | `String` | Information relative au nom de l'entité `SeverancePayHypothesisSolutionFundingPlan` dans son contexte d'utilisation |            |                 |             |                           |
| createdAt                                   | `Date`   | Date de création de l'entité `SeverancePayHypothesisSolutionFundingPlan`                                            |            | X               |             |                           |
| updatedAt                                   | `Date`   | Date de modification de l'entité `SeverancePayHypothesisSolutionFundingPlan`                                        |            | X               |             |                           |

## Enumérations

Aucune enumération.

## Enumérations génériques

Aucune enumération générique.

## 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 { getSeverancePayHypothesisId } from '@fasstech/oip-core/entities/SeverancePayHypothesis';
import { getSeverancePayHypothesisSolutionId } from '@fasstech/oip-core/entities/SeverancePayHypothesisSolution';
import { getSeverancePayHypothesisSolutionFundingPlanAnnualDeposit, getSeverancePayHypothesisSolutionFundingPlanCode, getSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains, getSeverancePayHypothesisSolutionFundingPlanDepartureNumber, getSeverancePayHypothesisSolutionFundingPlanExternalCode, getSeverancePayHypothesisSolutionFundingPlanExternalId, getSeverancePayHypothesisSolutionFundingPlanId, getSeverancePayHypothesisSolutionFundingPlanLabel, getSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay, getSeverancePayHypothesisSolutionFundingPlanSeverancePayHypothesisSolutionFundingPlanId, getSeverancePayHypothesisSolutionFundingPlanYear, getSeverancePayHypothesisSolutionFundingPlanYearEndBalance, getSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount, setSeverancePayHypothesisSolutionFundingPlanAnnualDeposit, setSeverancePayHypothesisSolutionFundingPlanCode, setSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains, setSeverancePayHypothesisSolutionFundingPlanDepartureNumber, setSeverancePayHypothesisSolutionFundingPlanExternalCode, setSeverancePayHypothesisSolutionFundingPlanExternalId, setSeverancePayHypothesisSolutionFundingPlanLabel, setSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay, setSeverancePayHypothesisSolutionFundingPlanSeverancePayHypothesisSolutionFundingPlanId, setSeverancePayHypothesisSolutionFundingPlanYear, setSeverancePayHypothesisSolutionFundingPlanYearEndBalance, setSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount } from '@fasstech/oip-core/entities/SeverancePayHypothesisSolutionFundingPlan';

(async () => {
  let project = await Entities('Project').create();
  let offer = await Entities('Offer').create();
  let hypothesis = await Entities('Hypothesis').create();
  let severancePayHypothesis = await Entities('SeverancePayHypothesis').create();
  let severancePayHypothesisSolution = await Entities('SeverancePayHypothesisSolution').create();
  const severancePayHypothesisSolutionFundingPlan = await Entities('SeverancePayHypothesisSolutionFundingPlan').create();
  
  setSeverancePayHypothesisSolutionFundingPlanAnnualDeposit(97, severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains(99, severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanDepartureNumber(100, severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay(112, severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanYear('year', severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanYearEndBalance(121, severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount(121, severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanCode('code', severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanExternalId('externalId', severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanExternalCode('externalCode', severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanSeverancePayHypothesisSolutionFundingPlanId('severancePayHypothesisSolutionFundingPlanId', severancePayHypothesisSolutionFundingPlan);
  setSeverancePayHypothesisSolutionFundingPlanLabel('label', severancePayHypothesisSolutionFundingPlan);
  
  severancePayHypothesisSolution = await Entities('SeverancePayHypothesisSolutionFundingPlan').save(severancePayHypothesisSolution, severancePayHypothesisSolutionFundingPlan);
  severancePayHypothesis = await Entities('SeverancePayHypothesisSolution').save(severancePayHypothesis, severancePayHypothesisSolution);
  hypothesis = await Entities('SeverancePayHypothesis').save(hypothesis, severancePayHypothesis);
  offer = await Entities('Hypothesis').save(offer, hypothesis);
  project = await Entities('Offer').save(project, offer);
  await Entities('Project').save(project);
  
  const projectToTest = await Entities('Project').get({ id: getProjectId(project) });
  const offerToTest = await Entities('Offer').get(projectToTest, { filter: ({ id }) => id === getOfferId(offer) });
  const hypothesisToTest = await Entities('Hypothesis').get(offerToTest, { filter: ({ id }) => id === getHypothesisId(hypothesis) });
  const severancePayHypothesisToTest = await Entities('SeverancePayHypothesis').get(hypothesisToTest, { filter: ({ id }) => id === getSeverancePayHypothesisId(severancePayHypothesis) });
  const severancePayHypothesisSolutionToTest = await Entities('SeverancePayHypothesisSolution').get(severancePayHypothesisToTest, { filter: ({ id }) => id === getSeverancePayHypothesisSolutionId(severancePayHypothesisSolution) });
  const severancePayHypothesisSolutionFundingPlanToTest = await Entities('SeverancePayHypothesisSolutionFundingPlan').get(severancePayHypothesisSolutionToTest, { filter: ({ id }) => id === getSeverancePayHypothesisSolutionFundingPlanId(severancePayHypothesisSolutionFundingPlan) });
  
  getSeverancePayHypothesisSolutionFundingPlanAnnualDeposit(severancePayHypothesisSolutionFundingPlanToTest); // 97
  getSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains(severancePayHypothesisSolutionFundingPlanToTest); // 99
  getSeverancePayHypothesisSolutionFundingPlanDepartureNumber(severancePayHypothesisSolutionFundingPlanToTest); // 100
  getSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay(severancePayHypothesisSolutionFundingPlanToTest); // 112
  getSeverancePayHypothesisSolutionFundingPlanYear(severancePayHypothesisSolutionFundingPlanToTest); // 'year'
  getSeverancePayHypothesisSolutionFundingPlanYearEndBalance(severancePayHypothesisSolutionFundingPlanToTest); // 121
  getSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount(severancePayHypothesisSolutionFundingPlanToTest); // 121
  getSeverancePayHypothesisSolutionFundingPlanCode(severancePayHypothesisSolutionFundingPlanToTest); // 'code'
  getSeverancePayHypothesisSolutionFundingPlanExternalId(severancePayHypothesisSolutionFundingPlanToTest); // 'externalId'
  getSeverancePayHypothesisSolutionFundingPlanExternalCode(severancePayHypothesisSolutionFundingPlanToTest); // 'externalCode'
  getSeverancePayHypothesisSolutionFundingPlanSeverancePayHypothesisSolutionFundingPlanId(severancePayHypothesisSolutionFundingPlanToTest); // 'severancePayHypothesisSolutionFundingPlanId'
  getSeverancePayHypothesisSolutionFundingPlanLabel(severancePayHypothesisSolutionFundingPlanToTest); // 'label'
})();
```
