SeverancePayFundingPlan
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 |
Propriétés
Nom | Type | Description | Validateur | Lecture seule ? | Dépréciée ? | DerniÚre version modifiée |
|---|---|---|---|---|---|---|
allocationYear | String | Il s'agit de l'annĂ©e de rĂ©partition du plan de financement. | ï»ż | ï»ż | ï»ż | 2.7.0 |
amount | Number | Il s'agit du montant du plan de financement. | ï»ż | ï»ż | ï»ż | 2.7.0 |
employeeCount | Number | Il s'agit de l'effectif des salariĂ©s. | ï»ż | ï»ż | ï»ż | 2.7.0 |
id | String | Identifiant de l'entitĂ© SeverancePayFundingPlan | ï»ż | X | ï»ż | ï»ż |
code | String | Codification fonctionnelle de l'entitĂ© SeverancePayFundingPlan | ï»ż | ï»ż | ï»ż | ï»ż |
externalId | String | Identifiant de l'entitĂ© SeverancePayFundingPlan dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
externalCode | String | Codification fonctionnelle de l'entitĂ© SeverancePayFundingPlan dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
severancePayFundingPlanId | String | Identifiant public de l'entitĂ© SeverancePayFundingPlan dans l'OIP | ï»ż | ï»ż | ï»ż | ï»ż |
label | String | Information relative au nom de l'entitĂ© SeverancePayFundingPlan dans son contexte d'utilisation | ï»ż | ï»ż | ï»ż | ï»ż |
createdAt | Date | Date de crĂ©ation de l'entitĂ© SeverancePayFundingPlan | ï»ż | X | ï»ż | ï»ż |
updatedAt | Date | Date de modification de l'entitĂ© SeverancePayFundingPlan | ï»ż | X | ï»ż | ï»ż |
Enumérations
Aucune enumération.
Enumérations génériques
Aucune enumération générique.
Exemple
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, getSeverancePayFundingPlanCode, getSeverancePayFundingPlanEmployeeCount, getSeverancePayFundingPlanExternalCode, getSeverancePayFundingPlanExternalId, getSeverancePayFundingPlanId, getSeverancePayFundingPlanLabel, getSeverancePayFundingPlanSeverancePayFundingPlanId, setSeverancePayFundingPlanAllocationYear, setSeverancePayFundingPlanAmount, setSeverancePayFundingPlanCode, setSeverancePayFundingPlanEmployeeCount, setSeverancePayFundingPlanExternalCode, setSeverancePayFundingPlanExternalId, setSeverancePayFundingPlanLabel, setSeverancePayFundingPlanSeverancePayFundingPlanId } from '@fasstech/oip-core/entities/SeverancePayFundingPlan';
import { getSeverancePayHypothesisId } from '@fasstech/oip-core/entities/SeverancePayHypothesis';
(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();
const severancePayFundingPlan = await Entities('SeverancePayFundingPlan').create();
setSeverancePayFundingPlanAllocationYear('allocationYear', severancePayFundingPlan);
setSeverancePayFundingPlanAmount(97, severancePayFundingPlan);
setSeverancePayFundingPlanEmployeeCount(101, severancePayFundingPlan);
setSeverancePayFundingPlanCode('code', severancePayFundingPlan);
setSeverancePayFundingPlanExternalId('externalId', severancePayFundingPlan);
setSeverancePayFundingPlanExternalCode('externalCode', severancePayFundingPlan);
setSeverancePayFundingPlanSeverancePayFundingPlanId('severancePayFundingPlanId', severancePayFundingPlan);
setSeverancePayFundingPlanLabel('label', severancePayFundingPlan);
severancePayHypothesis = await Entities('SeverancePayFundingPlan').save(severancePayHypothesis, severancePayFundingPlan);
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 severancePayFundingPlanToTest = await Entities('SeverancePayFundingPlan').get(severancePayHypothesisToTest, { filter: ({ id }) => id === getSeverancePayFundingPlanId(severancePayFundingPlan) });
getSeverancePayFundingPlanAllocationYear(severancePayFundingPlanToTest); // 'allocationYear'
getSeverancePayFundingPlanAmount(severancePayFundingPlanToTest); // 97
getSeverancePayFundingPlanEmployeeCount(severancePayFundingPlanToTest); // 101
getSeverancePayFundingPlanCode(severancePayFundingPlanToTest); // 'code'
getSeverancePayFundingPlanExternalId(severancePayFundingPlanToTest); // 'externalId'
getSeverancePayFundingPlanExternalCode(severancePayFundingPlanToTest); // 'externalCode'
getSeverancePayFundingPlanSeverancePayFundingPlanId(severancePayFundingPlanToTest); // 'severancePayFundingPlanId'
getSeverancePayFundingPlanLabel(severancePayFundingPlanToTest); // 'label'
})();