SeverancePayHypothesisResult
SeverancePayHypothesisResult
Description
L'entité SeverancePayHypothesisResult contient les résultats du simulateur concernant le passif social d'une entreprise. Les calculs concerneront aussi bien l'entreprise que les salariés. Dans ce dernier cas, la propriété employeeId sera renseignée. Les notion de duration et de theoricalSocialChargeGain ne concerne que l'entreprise.
Relations
Ascendantes
Entité | Propriété |
|---|---|
SeverancePayHypothesis | severancePayHypothesisResults |
Descendantes
Entité | Propriété |
|---|---|
History | history |
Propriétés
Nom | Type | Description | Validateur | Lecture seule ? | Dépréciée ? | Dernière version modifiée |
|---|---|---|---|---|---|---|
customizedLeavingOptionIndicator | Number | Il s'agit de l'Indicateur option de départ personnalisé | | | | 2.8.0 |
employeeId | String | Il s'agit de l'identifiant du salarié. Cela permet de faire le lien avec le tableau d'employé initialement chargé. | | | | 2.7.0 |
employeeSalaryScale | String | Il s'agit du barème utilisé pour le salarié afin de calculer son passif social. | | | | 2.7.0 |
finalCareerSalary | Number | Il s'agit du salaire au terme de la carrière pour un salarié. | | | | 2.7.0 |
finalCareerSeniority | Number | Il s'agit de l'ancienneté d'un salarié au terme de sa carrière. | | | | 2.7.0 |
financialRefresh | Number | Il s'agit de l'actualisation financière pour un salarié. | | | | 2.7.0 |
hireDate | Date | Il s'agit de la date d'embauche pour un salarié. | | | | 2.7.0 |
lifeExpectancy | Number | Il s'agit de la probabilité de vie pour un salarié. Cette donnée est issue de tables statistiques de l'INSEE. On utilise aussi la notion de table de mortalité pour avoir l'information. | | | | 2.7.0 |
monthsOfService | Number | Il s'agit de l'ancienneté totale en mois pour un salarié au sein de la même CCN pour l'ensemble des entreprises dans lesquelles il a travaillé. Cette ancienneté sera utilisée pour calcul le passif social IFC. | | | | 2.8.0 |
presenceExpentancy | Number | Il s'agit de la probabilité de présence pour un salarié. | | | | 2.7.0 |
professionalCategoryGroup | ProfessionalCategoryGroupEnum | Il s'agit du regroupement de catégorie IFC pour un salarié. | | | | 2.7.0 |
refreshedExpectedSeverancePay | Number | Il s'agit de l'IFC Probable Actualisée pour un salarié. | | | | 2.7.0 |
selectedRetirementDate | Date | Il s'agit de la date de départ en retraite retenue pour un salarié. | | | | 2.7.0 |
selectedSeniorityYear | Number | Il s'agit du nombre d'années d'ancienneté retenues pour un salarié. | | | | 2.7.0 |
seniorityProrata | Number | Il s'agit du prorata ancienneté pour un salarié. | | | | 2.7.0 |
severancePayAmount | Number | Il s'agit du montant du passif social pour le salarié. | | | | 2.7.0 |
severancePayIncludingSocialCharges | Number | Il s'agit de l'IFC dont charges sociales pour un salarié. | | | | 2.7.0 |
socialCharges | Number | Il s'agit du montant des charges sociales à payer jusqu'à la retraite pour un salarié. | | | | 2.7.0 |
theoricalSeverancePayWithoutSocialCharges | Number | Il s'agit de l'IFC théorique (hors charges) pour un salarié. | | | | 2.7.0 |
yearsOfService | Number | Il s'agit de l'ancienneté totale pour un salarié au sein de la même CCN pour l'ensemble des entreprises dans lesquelles il a travaillé. Cette ancienneté sera utilisée pour calcul le passif social IFC. | | | | 2.7.0 |
id | String | Identifiant de l'entité SeverancePayHypothesisResult | | X | | |
code | String | Codification fonctionnelle de l'entité SeverancePayHypothesisResult | | | | |
externalId | String | Identifiant de l'entité SeverancePayHypothesisResult dans le système client | | | | |
externalCode | String | Codification fonctionnelle de l'entité SeverancePayHypothesisResult dans le système client | | | | |
severancePayHypothesisResultId | String | Identifiant public de l'entité SeverancePayHypothesisResult dans l'OIP | | | | |
label | String | Information relative au nom de l'entité SeverancePayHypothesisResult dans son contexte d'utilisation | | | | |
createdAt | Date | Date de création de l'entité SeverancePayHypothesisResult | | X | | |
updatedAt | Date | Date de modification de l'entité SeverancePayHypothesisResult | | X | | |
Enumérations
Aucune enumération.
Enumérations génériques
- ProfessionalCategoryGroupEnum
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 { getSeverancePayHypothesisResultCode, getSeverancePayHypothesisResultCustomizedLeavingOptionIndicator, getSeverancePayHypothesisResultEmployeeId, getSeverancePayHypothesisResultEmployeeSalaryScale, getSeverancePayHypothesisResultExternalCode, getSeverancePayHypothesisResultExternalId, getSeverancePayHypothesisResultFinalCareerSalary, getSeverancePayHypothesisResultFinalCareerSeniority, getSeverancePayHypothesisResultFinancialRefresh, getSeverancePayHypothesisResultHireDate, getSeverancePayHypothesisResultId, getSeverancePayHypothesisResultLabel, getSeverancePayHypothesisResultLifeExpectancy, getSeverancePayHypothesisResultMonthsOfService, getSeverancePayHypothesisResultPresenceExpentancy, getSeverancePayHypothesisResultProfessionalCategoryGroup, getSeverancePayHypothesisResultRefreshedExpectedSeverancePay, getSeverancePayHypothesisResultSelectedRetirementDate, getSeverancePayHypothesisResultSelectedSeniorityYear, getSeverancePayHypothesisResultSeniorityProrata, getSeverancePayHypothesisResultSeverancePayAmount, getSeverancePayHypothesisResultSeverancePayHypothesisResultId, getSeverancePayHypothesisResultSeverancePayIncludingSocialCharges, getSeverancePayHypothesisResultSocialCharges, getSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges, getSeverancePayHypothesisResultYearsOfService, setSeverancePayHypothesisResultCode, setSeverancePayHypothesisResultCustomizedLeavingOptionIndicator, setSeverancePayHypothesisResultEmployeeId, setSeverancePayHypothesisResultEmployeeSalaryScale, setSeverancePayHypothesisResultExternalCode, setSeverancePayHypothesisResultExternalId, setSeverancePayHypothesisResultFinalCareerSalary, setSeverancePayHypothesisResultFinalCareerSeniority, setSeverancePayHypothesisResultFinancialRefresh, setSeverancePayHypothesisResultHireDate, setSeverancePayHypothesisResultLabel, setSeverancePayHypothesisResultLifeExpectancy, setSeverancePayHypothesisResultMonthsOfService, setSeverancePayHypothesisResultPresenceExpentancy, setSeverancePayHypothesisResultProfessionalCategoryGroup, setSeverancePayHypothesisResultRefreshedExpectedSeverancePay, setSeverancePayHypothesisResultSelectedRetirementDate, setSeverancePayHypothesisResultSelectedSeniorityYear, setSeverancePayHypothesisResultSeniorityProrata, setSeverancePayHypothesisResultSeverancePayAmount, setSeverancePayHypothesisResultSeverancePayHypothesisResultId, setSeverancePayHypothesisResultSeverancePayIncludingSocialCharges, setSeverancePayHypothesisResultSocialCharges, setSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges, setSeverancePayHypothesisResultYearsOfService } from '@fasstech/oip-core/entities/SeverancePayHypothesisResult';
import { ProfessionalCategoryGroupEnum } from '@fasstech/oip-core/entities/enums';
(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 severancePayHypothesisResult = await Entities('SeverancePayHypothesisResult').create();
setSeverancePayHypothesisResultCustomizedLeavingOptionIndicator(99, severancePayHypothesisResult);
setSeverancePayHypothesisResultEmployeeId('employeeId', severancePayHypothesisResult);
setSeverancePayHypothesisResultEmployeeSalaryScale('employeeSalaryScale', severancePayHypothesisResult);
setSeverancePayHypothesisResultFinalCareerSalary(102, severancePayHypothesisResult);
setSeverancePayHypothesisResultFinalCareerSeniority(102, severancePayHypothesisResult);
setSeverancePayHypothesisResultFinancialRefresh(102, severancePayHypothesisResult);
setSeverancePayHypothesisResultHireDate(new Date('2017-01-01'), severancePayHypothesisResult);
setSeverancePayHypothesisResultLifeExpectancy(108, severancePayHypothesisResult);
setSeverancePayHypothesisResultMonthsOfService(109, severancePayHypothesisResult);
setSeverancePayHypothesisResultPresenceExpentancy(112, severancePayHypothesisResult);
setSeverancePayHypothesisResultProfessionalCategoryGroup(ProfessionalCategoryGroupEnum.SUPERVISOR, severancePayHypothesisResult);
setSeverancePayHypothesisResultRefreshedExpectedSeverancePay(114, severancePayHypothesisResult);
setSeverancePayHypothesisResultSelectedRetirementDate(new Date('2017-01-01'), severancePayHypothesisResult);
setSeverancePayHypothesisResultSelectedSeniorityYear(115, severancePayHypothesisResult);
setSeverancePayHypothesisResultSeniorityProrata(115, severancePayHypothesisResult);
setSeverancePayHypothesisResultSeverancePayAmount(115, severancePayHypothesisResult);
setSeverancePayHypothesisResultSeverancePayIncludingSocialCharges(115, severancePayHypothesisResult);
setSeverancePayHypothesisResultSocialCharges(115, severancePayHypothesisResult);
setSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges(116, severancePayHypothesisResult);
setSeverancePayHypothesisResultYearsOfService(121, severancePayHypothesisResult);
setSeverancePayHypothesisResultCode('code', severancePayHypothesisResult);
setSeverancePayHypothesisResultExternalId('externalId', severancePayHypothesisResult);
setSeverancePayHypothesisResultExternalCode('externalCode', severancePayHypothesisResult);
setSeverancePayHypothesisResultSeverancePayHypothesisResultId('severancePayHypothesisResultId', severancePayHypothesisResult);
setSeverancePayHypothesisResultLabel('label', severancePayHypothesisResult);
severancePayHypothesis = await Entities('SeverancePayHypothesisResult').save(severancePayHypothesis, severancePayHypothesisResult);
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 severancePayHypothesisResultToTest = await Entities('SeverancePayHypothesisResult').get(severancePayHypothesisToTest, { filter: ({ id }) => id === getSeverancePayHypothesisResultId(severancePayHypothesisResult) });
getSeverancePayHypothesisResultCustomizedLeavingOptionIndicator(severancePayHypothesisResultToTest); // 99
getSeverancePayHypothesisResultEmployeeId(severancePayHypothesisResultToTest); // 'employeeId'
getSeverancePayHypothesisResultEmployeeSalaryScale(severancePayHypothesisResultToTest); // 'employeeSalaryScale'
getSeverancePayHypothesisResultFinalCareerSalary(severancePayHypothesisResultToTest); // 102
getSeverancePayHypothesisResultFinalCareerSeniority(severancePayHypothesisResultToTest); // 102
getSeverancePayHypothesisResultFinancialRefresh(severancePayHypothesisResultToTest); // 102
getSeverancePayHypothesisResultHireDate(severancePayHypothesisResultToTest); // new Date('2017-01-01')
getSeverancePayHypothesisResultLifeExpectancy(severancePayHypothesisResultToTest); // 108
getSeverancePayHypothesisResultMonthsOfService(severancePayHypothesisResultToTest); // 109
getSeverancePayHypothesisResultPresenceExpentancy(severancePayHypothesisResultToTest); // 112
getSeverancePayHypothesisResultProfessionalCategoryGroup(severancePayHypothesisResultToTest); // ProfessionalCategoryGroupEnum.SUPERVISOR
getSeverancePayHypothesisResultRefreshedExpectedSeverancePay(severancePayHypothesisResultToTest); // 114
getSeverancePayHypothesisResultSelectedRetirementDate(severancePayHypothesisResultToTest); // new Date('2017-01-01')
getSeverancePayHypothesisResultSelectedSeniorityYear(severancePayHypothesisResultToTest); // 115
getSeverancePayHypothesisResultSeniorityProrata(severancePayHypothesisResultToTest); // 115
getSeverancePayHypothesisResultSeverancePayAmount(severancePayHypothesisResultToTest); // 115
getSeverancePayHypothesisResultSeverancePayIncludingSocialCharges(severancePayHypothesisResultToTest); // 115
getSeverancePayHypothesisResultSocialCharges(severancePayHypothesisResultToTest); // 115
getSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges(severancePayHypothesisResultToTest); // 116
getSeverancePayHypothesisResultYearsOfService(severancePayHypothesisResultToTest); // 121
getSeverancePayHypothesisResultCode(severancePayHypothesisResultToTest); // 'code'
getSeverancePayHypothesisResultExternalId(severancePayHypothesisResultToTest); // 'externalId'
getSeverancePayHypothesisResultExternalCode(severancePayHypothesisResultToTest); // 'externalCode'
getSeverancePayHypothesisResultSeverancePayHypothesisResultId(severancePayHypothesisResultToTest); // 'severancePayHypothesisResultId'
getSeverancePayHypothesisResultLabel(severancePayHypothesisResultToTest); // 'label'
})();