SeverancePayTheorical
SeverancePayTheorical
Description
LâentitĂ© SeverancePayTheorical contient les donnĂ©es issues des rĂ©sultats du simulateur pour le calcul de l'IFC thĂ©orique.
Relations
Ascendantes
Entité | Propriété |
|---|---|
SeverancePayHypothesis | severancePayTheoricals |
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. | getSeverancePayTheoricalAllocationYear | setSeverancePayTheoricalAllocationYear | - |
amount | Number | 2.7.0 | Il sâagit du montant de lâIFC thĂ©orique. | getSeverancePayTheoricalAmount | setSeverancePayTheoricalAmount | - |
createdAt | Date | ï»ż | Date de crĂ©ation de l'entitĂ© SeverancePayTheorical | getSeverancePayTheoricalCreatedAt | Lecture seule | - |
createdBy | String | ï»ż | Utilisateur Ă l'origine de la crĂ©ation de l'entitĂ© SeverancePayTheorical | getSeverancePayTheoricalCreatedBy | Lecture seule | - |
employeeCount | Number | 2.7.0 | Il sâagit de lâeffectif des salariĂ©s. | getSeverancePayTheoricalEmployeeCount | setSeverancePayTheoricalEmployeeCount | - |
id | String | ï»ż | Identifiant unique de l'entitĂ© SeverancePayTheorical | getSeverancePayTheoricalId | Lecture seule | - |
updatedAt | Date | ï»ż | Date de modification de l'entitĂ© SeverancePayTheorical | getSeverancePayTheoricalUpdatedAt | Lecture seule | - |
updatedBy | String | ï»ż | Utilisateur Ă l'origine de la modification de l'entitĂ© SeverancePayTheorical | getSeverancePayTheoricalUpdatedBy | 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 { getSeverancePayTheoricalAllocationYear, getSeverancePayTheoricalAmount, getSeverancePayTheoricalEmployeeCount, getseverancePayTheoricalId, setSeverancePayTheoricalAllocationYear, setSeverancePayTheoricalAmount, setSeverancePayTheoricalEmployeeCount } from '@fasstech/oip-core/entities/severancePayTheorical';
(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 SeverancePayTheoricalEntity = await Entities('SeverancePayTheorical').create();
setSeverancePayTheoricalAllocationYear('allocationYear', SeverancePayTheoricalEntity);
setSeverancePayTheoricalAmount(97, SeverancePayTheoricalEntity);
setSeverancePayTheoricalEmployeeCount(101, SeverancePayTheoricalEntity);
SeverancePayHypothesisEntity = await Entities('SeverancePayTheorical').save(SeverancePayHypothesisEntity, SeverancePayTheoricalEntity);
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 SeverancePayTheoricalEntityToTest = await Entities('SeverancePayTheorical').get(SeverancePayHypothesisEntityToTest, getSeverancePayTheoricalId(SeverancePayTheoricalEntity));
getSeverancePayTheoricalAllocationYear(SeverancePayTheoricalEntityToTest); // 'allocationYear'
getSeverancePayTheoricalAmount(SeverancePayTheoricalEntityToTest); // 97
getSeverancePayTheoricalEmployeeCount(SeverancePayTheoricalEntityToTest); // 101
})();