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