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 |
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
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
})();