---
title: SeverancePayHypothesisSolutionFundingPlan
slug: oip-next/hfcrp844smqwlk6oqpx3k
createdAt: 2024-04-18T08:19:25.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   |

## Liste des propriétés

| Nom                   | Type     | Dernière version modifiée | Description                                                                                        | Getter                                                            | Setter                                                            | Deprecated |
| --------------------- | -------- | ------------------------- | -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ---------- |
| annualDeposit         | `Number` | 2.9.0                     | Il s’agit du versement initial de l’année                                                          | getSeverancePayHypothesisSolutionFundingPlanAnnualDeposit         | setSeverancePayHypothesisSolutionFundingPlanAnnualDeposit         | -          |
| companyTaxGains       | `Number` | 2.9.0                     | Il s'agit du gain d'Impôts sur les sociétés pour l'entreprise                                      | getSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains       | setSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains       | -          |
| createdAt             | `Date`   |                           | Date de création de l'entité `SeverancePayHypothesisSolutionFundingPlan`                           | getSeverancePayHypothesisSolutionFundingPlanCreatedAt             | Lecture seule                                                     | -          |
| createdBy             | `String` |                           | Utilisateur à l'origine de la création de l'entité `SeverancePayHypothesisSolutionFundingPlan`     | getSeverancePayHypothesisSolutionFundingPlanCreatedBy             | Lecture seule                                                     | -          |
| departureNumber       | `Number` | 2.9.0                     | Il s’agit du nombre de départ                                                                      | getSeverancePayHypothesisSolutionFundingPlanDepartureNumber       | setSeverancePayHypothesisSolutionFundingPlanDepartureNumber       | -          |
| id                    | `String` |                           | Identifiant unique de l'entité `SeverancePayHypothesisSolutionFundingPlan`                         | getSeverancePayHypothesisSolutionFundingPlanId                    | Lecture seule                                                     | -          |
| potentialSeverancePay | `Number` | 2.9.0                     | Il s’agit de l'IFC probable. Cela correspond au montant des engagements pour l’année               | getSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay | setSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay | -          |
| updatedAt             | `Date`   |                           | Date de modification de l'entité `SeverancePayHypothesisSolutionFundingPlan`                       | getSeverancePayHypothesisSolutionFundingPlanUpdatedAt             | Lecture seule                                                     | -          |
| updatedBy             | `String` |                           | Utilisateur à l'origine de la modification de l'entité `SeverancePayHypothesisSolutionFundingPlan` | getSeverancePayHypothesisSolutionFundingPlanUpdatedBy             | Lecture seule                                                     | -          |
| year                  | `String` | 2.9.0                     | Il s’agit de l’année du plan de financement                                                        | getSeverancePayHypothesisSolutionFundingPlanYear                  | setSeverancePayHypothesisSolutionFundingPlanYear                  | -          |
| yearEndBalance        | `Number` | 2.9.0                     | Il s’agit du montant en compte en fin d’année                                                      | getSeverancePayHypothesisSolutionFundingPlanYearEndBalance        | setSeverancePayHypothesisSolutionFundingPlanYearEndBalance        | -          |
| yearEndInterestAmount | `Number` | 2.9.0                     | Il s’agit du montant des intérêts en fin d’année                                                   | getSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount | setSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount | -          |

## 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 { getSeverancePayHypothesisSolutionId } from '@fasstech/oip-core/entities/severancePayHypothesisSolution';
import { getSeverancePayHypothesisSolutionFundingPlanAnnualDeposit, getSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains, getSeverancePayHypothesisSolutionFundingPlanDepartureNumber, getSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay, getSeverancePayHypothesisSolutionFundingPlanYear, getSeverancePayHypothesisSolutionFundingPlanYearEndBalance, getSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount, getseverancePayHypothesisSolutionFundingPlanId, setSeverancePayHypothesisSolutionFundingPlanAnnualDeposit, setSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains, setSeverancePayHypothesisSolutionFundingPlanDepartureNumber, setSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay, setSeverancePayHypothesisSolutionFundingPlanYear, setSeverancePayHypothesisSolutionFundingPlanYearEndBalance, setSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount } from '@fasstech/oip-core/entities/severancePayHypothesisSolutionFundingPlan';

(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);
  let SeverancePayHypothesisSolutionEntity = await Entities('SeverancePayHypothesisSolution').create();
  const SeverancePayHypothesisSolutionFundingPlanEntity = await Entities('SeverancePayHypothesisSolutionFundingPlan').create();
  
  setSeverancePayHypothesisSolutionFundingPlanAnnualDeposit(97, SeverancePayHypothesisSolutionFundingPlanEntity);
  setSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains(99, SeverancePayHypothesisSolutionFundingPlanEntity);
  setSeverancePayHypothesisSolutionFundingPlanDepartureNumber(100, SeverancePayHypothesisSolutionFundingPlanEntity);
  setSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay(112, SeverancePayHypothesisSolutionFundingPlanEntity);
  setSeverancePayHypothesisSolutionFundingPlanYear('year', SeverancePayHypothesisSolutionFundingPlanEntity);
  setSeverancePayHypothesisSolutionFundingPlanYearEndBalance(121, SeverancePayHypothesisSolutionFundingPlanEntity);
  setSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount(121, SeverancePayHypothesisSolutionFundingPlanEntity);
  
  SeverancePayHypothesisSolutionEntity = await Entities('SeverancePayHypothesisSolutionFundingPlan').save(SeverancePayHypothesisSolutionEntity, SeverancePayHypothesisSolutionFundingPlanEntity);
  SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesisSolution').save(SeverancePayHypothesisEntity, SeverancePayHypothesisSolutionEntity);
  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 SeverancePayHypothesisSolutionEntityToTest = await Entities('SeverancePayHypothesisSolution').get(SeverancePayHypothesisEntityToTest, getSeverancePayHypothesisSolutionId(SeverancePayHypothesisSolutionEntity));
  const SeverancePayHypothesisSolutionFundingPlanEntityToTest = await Entities('SeverancePayHypothesisSolutionFundingPlan').get(SeverancePayHypothesisSolutionEntityToTest, getSeverancePayHypothesisSolutionFundingPlanId(SeverancePayHypothesisSolutionFundingPlanEntity));
  
  getSeverancePayHypothesisSolutionFundingPlanAnnualDeposit(SeverancePayHypothesisSolutionFundingPlanEntityToTest); // 97
  getSeverancePayHypothesisSolutionFundingPlanCompanyTaxGains(SeverancePayHypothesisSolutionFundingPlanEntityToTest); // 99
  getSeverancePayHypothesisSolutionFundingPlanDepartureNumber(SeverancePayHypothesisSolutionFundingPlanEntityToTest); // 100
  getSeverancePayHypothesisSolutionFundingPlanPotentialSeverancePay(SeverancePayHypothesisSolutionFundingPlanEntityToTest); // 112
  getSeverancePayHypothesisSolutionFundingPlanYear(SeverancePayHypothesisSolutionFundingPlanEntityToTest); // 'year'
  getSeverancePayHypothesisSolutionFundingPlanYearEndBalance(SeverancePayHypothesisSolutionFundingPlanEntityToTest); // 121
  getSeverancePayHypothesisSolutionFundingPlanYearEndInterestAmount(SeverancePayHypothesisSolutionFundingPlanEntityToTest); // 121
})();
```
