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 |
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. | ï»ż | ï»ż | ï»ż | 2.7.0 |
amount | Number | Il s'agit du montant de l'IFC thĂ©orique. | ï»ż | ï»ż | ï»ż | 2.7.0 |
employeeCount | Number | Il s'agit de l'effectif des salariĂ©s. | ï»ż | ï»ż | ï»ż | 2.7.0 |
id | String | Identifiant de l'entitĂ© SeverancePayTheorical | ï»ż | X | ï»ż | ï»ż |
code | String | Codification fonctionnelle de l'entitĂ© SeverancePayTheorical | ï»ż | ï»ż | ï»ż | ï»ż |
externalId | String | Identifiant de l'entitĂ© SeverancePayTheorical dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
externalCode | String | Codification fonctionnelle de l'entitĂ© SeverancePayTheorical dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
severancePayTheoricalId | String | Identifiant public de l'entitĂ© SeverancePayTheorical dans l'OIP | ï»ż | ï»ż | ï»ż | ï»ż |
label | String | Information relative au nom de l'entitĂ© SeverancePayTheorical dans son contexte d'utilisation | ï»ż | ï»ż | ï»ż | ï»ż |
createdAt | Date | Date de crĂ©ation de l'entitĂ© SeverancePayTheorical | ï»ż | X | ï»ż | ï»ż |
updatedAt | Date | Date de modification de l'entitĂ© SeverancePayTheorical | ï»ż | 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 { getSeverancePayHypothesisId } from '@fasstech/oip-core/entities/SeverancePayHypothesis';
import { getSeverancePayTheoricalAllocationYear, getSeverancePayTheoricalAmount, getSeverancePayTheoricalCode, getSeverancePayTheoricalEmployeeCount, getSeverancePayTheoricalExternalCode, getSeverancePayTheoricalExternalId, getSeverancePayTheoricalId, getSeverancePayTheoricalLabel, getSeverancePayTheoricalSeverancePayTheoricalId, setSeverancePayTheoricalAllocationYear, setSeverancePayTheoricalAmount, setSeverancePayTheoricalCode, setSeverancePayTheoricalEmployeeCount, setSeverancePayTheoricalExternalCode, setSeverancePayTheoricalExternalId, setSeverancePayTheoricalLabel, setSeverancePayTheoricalSeverancePayTheoricalId } from '@fasstech/oip-core/entities/SeverancePayTheorical';
(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 severancePayTheorical = await Entities('SeverancePayTheorical').create();
setSeverancePayTheoricalAllocationYear('allocationYear', severancePayTheorical);
setSeverancePayTheoricalAmount(97, severancePayTheorical);
setSeverancePayTheoricalEmployeeCount(101, severancePayTheorical);
setSeverancePayTheoricalCode('code', severancePayTheorical);
setSeverancePayTheoricalExternalId('externalId', severancePayTheorical);
setSeverancePayTheoricalExternalCode('externalCode', severancePayTheorical);
setSeverancePayTheoricalSeverancePayTheoricalId('severancePayTheoricalId', severancePayTheorical);
setSeverancePayTheoricalLabel('label', severancePayTheorical);
severancePayHypothesis = await Entities('SeverancePayTheorical').save(severancePayHypothesis, severancePayTheorical);
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 severancePayTheoricalToTest = await Entities('SeverancePayTheorical').get(severancePayHypothesisToTest, { filter: ({ id }) => id === getSeverancePayTheoricalId(severancePayTheorical) });
getSeverancePayTheoricalAllocationYear(severancePayTheoricalToTest); // 'allocationYear'
getSeverancePayTheoricalAmount(severancePayTheoricalToTest); // 97
getSeverancePayTheoricalEmployeeCount(severancePayTheoricalToTest); // 101
getSeverancePayTheoricalCode(severancePayTheoricalToTest); // 'code'
getSeverancePayTheoricalExternalId(severancePayTheoricalToTest); // 'externalId'
getSeverancePayTheoricalExternalCode(severancePayTheoricalToTest); // 'externalCode'
getSeverancePayTheoricalSeverancePayTheoricalId(severancePayTheoricalToTest); // 'severancePayTheoricalId'
getSeverancePayTheoricalLabel(severancePayTheoricalToTest); // 'label'
})();