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 |
Liste des propriétés
Nom | Type | DerniÚre version modifiée | Description | Getter | Setter | Deprecated |
|---|---|---|---|---|---|---|
createdAt | Date | ï»ż | Date de crĂ©ation de l'entitĂ© SeverancePayHypothesisResult | getSeverancePayHypothesisResultCreatedAt | Lecture seule | - |
createdBy | String | ï»ż | Utilisateur Ă l'origine de la crĂ©ation de l'entitĂ© SeverancePayHypothesisResult | getSeverancePayHypothesisResultCreatedBy | Lecture seule | - |
customizedLeavingOptionIndicator | Number | 2.8.0 | Il sâagit de l'Indicateur option de dĂ©part personnalisĂ© | getSeverancePayHypothesisResultCustomizedLeavingOptionIndicator | setSeverancePayHypothesisResultCustomizedLeavingOptionIndicator | - |
employeeId | String | 2.7.0 | Il sâagit de lâidentifiant du salariĂ©. Cela permet de faire le lien avec le tableau dâemployĂ© initialement chargĂ©. | getSeverancePayHypothesisResultEmployeeId | setSeverancePayHypothesisResultEmployeeId | - |
employeeSalaryScale | String | 2.7.0 | Il sâagit du barĂšme utilisĂ© pour le salariĂ© afin de calculer son passif social. | getSeverancePayHypothesisResultEmployeeSalaryScale | setSeverancePayHypothesisResultEmployeeSalaryScale | - |
finalCareerSalary | Number | 2.7.0 | Il sâagit du salaire au terme de la carriĂšre pour un salariĂ©. | getSeverancePayHypothesisResultFinalCareerSalary | setSeverancePayHypothesisResultFinalCareerSalary | - |
finalCareerSeniority | Number | 2.7.0 | Il sâagit de lâanciennetĂ© dâun salariĂ© au terme de sa carriĂšre. | getSeverancePayHypothesisResultFinalCareerSeniority | setSeverancePayHypothesisResultFinalCareerSeniority | - |
financialRefresh | Number | 2.7.0 | Il sâagit de lâactualisation financiĂšre pour un salariĂ©. | getSeverancePayHypothesisResultFinancialRefresh | setSeverancePayHypothesisResultFinancialRefresh | - |
hireDate | Date | 2.7.0 | Il sâagit de la date dâembauche pour un salariĂ©. | getSeverancePayHypothesisResultHireDate | setSeverancePayHypothesisResultHireDate | - |
id | String | ï»ż | Identifiant unique de l'entitĂ© SeverancePayHypothesisResult | getSeverancePayHypothesisResultId | Lecture seule | - |
lifeExpectancy | Number | 2.7.0 | 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. | getSeverancePayHypothesisResultLifeExpectancy | setSeverancePayHypothesisResultLifeExpectancy | - |
monthsOfService | Number | 2.8.0 | 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. | getSeverancePayHypothesisResultMonthsOfService | setSeverancePayHypothesisResultMonthsOfService | - |
presenceExpentancy | Number | 2.7.0 | Il sâagit de la probabilitĂ© de prĂ©sence pour un salariĂ©. | getSeverancePayHypothesisResultPresenceExpentancy | setSeverancePayHypothesisResultPresenceExpentancy | - |
professionalCategoryGroup | SeverancePayHypothesisResultProfessionalCategoryGroupEnum | 2.7.0 | Il sâagit du regroupement de catĂ©gorie IFC pour un salariĂ©. | getSeverancePayHypothesisResultProfessionalCategoryGroup | setSeverancePayHypothesisResultProfessionalCategoryGroup | - |
refreshedExpectedSeverancePay | Number | 2.7.0 | Il sâagit de l'IFC Probable ActualisĂ©e pour un salariĂ©. | getSeverancePayHypothesisResultRefreshedExpectedSeverancePay | setSeverancePayHypothesisResultRefreshedExpectedSeverancePay | - |
selectedRetirementDate | Date | 2.7.0 | Il sâagit de la date de dĂ©part en retraite retenue pour un salariĂ©. | getSeverancePayHypothesisResultSelectedRetirementDate | setSeverancePayHypothesisResultSelectedRetirementDate | - |
selectedSeniorityYear | Number | 2.7.0 | Il sâagit du nombre dâannĂ©es dâanciennetĂ© retenues pour un salariĂ©. | getSeverancePayHypothesisResultSelectedSeniorityYear | setSeverancePayHypothesisResultSelectedSeniorityYear | - |
seniorityProrata | Number | 2.7.0 | Il sâagit du prorata anciennetĂ© pour un salariĂ©. | getSeverancePayHypothesisResultSeniorityProrata | setSeverancePayHypothesisResultSeniorityProrata | - |
severancePayAmount | Number | 2.7.0 | Il sâagit du montant du passif social pour le salariĂ©. | getSeverancePayHypothesisResultSeverancePayAmount | setSeverancePayHypothesisResultSeverancePayAmount | - |
severancePayIncludingSocialCharges | Number | 2.7.0 | Il sâagit de l'IFC dont charges sociales pour un salariĂ©. | getSeverancePayHypothesisResultSeverancePayIncludingSocialCharges | setSeverancePayHypothesisResultSeverancePayIncludingSocialCharges | - |
socialCharges | Number | 2.7.0 | Il sâagit du montant des charges sociales Ă payer jusqu'Ă la retraite pour un salariĂ©. | getSeverancePayHypothesisResultSocialCharges | setSeverancePayHypothesisResultSocialCharges | - |
theoricalSeverancePayWithoutSocialCharges | Number | 2.7.0 | Il sâagit de lâIFC thĂ©orique (hors charges) pour un salariĂ©. | getSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges | setSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges | - |
updatedAt | Date | ï»ż | Date de modification de l'entitĂ© SeverancePayHypothesisResult | getSeverancePayHypothesisResultUpdatedAt | Lecture seule | - |
updatedBy | String | ï»ż | Utilisateur Ă l'origine de la modification de l'entitĂ© SeverancePayHypothesisResult | getSeverancePayHypothesisResultUpdatedBy | Lecture seule | - |
yearsOfService | Number | 2.7.0 | 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. | getSeverancePayHypothesisResultYearsOfService | setSeverancePayHypothesisResultYearsOfService | - |
Enums
SeverancePayHypothesisResultProfessionalCategoryGroupEnum
- SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SENIOR_EXECUTIVE_EMPLOYEE
- SeverancePayHypothesisResultProfessionalCategoryGroupEnum.EXECUTIVE_EMPLOYEE
- SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SUPERVISOR
- SeverancePayHypothesisResultProfessionalCategoryGroupEnum.EMPLOYEE
- SeverancePayHypothesisResultProfessionalCategoryGroupEnum.WORKER
- SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SALES_REPRESENTATIVE
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 { getSeverancePayHypothesisResultCustomizedLeavingOptionIndicator, getSeverancePayHypothesisResultEmployeeId, getSeverancePayHypothesisResultEmployeeSalaryScale, getSeverancePayHypothesisResultFinalCareerSalary, getSeverancePayHypothesisResultFinalCareerSeniority, getSeverancePayHypothesisResultFinancialRefresh, getSeverancePayHypothesisResultHireDate, getSeverancePayHypothesisResultLifeExpectancy, getSeverancePayHypothesisResultMonthsOfService, getSeverancePayHypothesisResultPresenceExpentancy, getSeverancePayHypothesisResultProfessionalCategoryGroup, getSeverancePayHypothesisResultRefreshedExpectedSeverancePay, getSeverancePayHypothesisResultSelectedRetirementDate, getSeverancePayHypothesisResultSelectedSeniorityYear, getSeverancePayHypothesisResultSeniorityProrata, getSeverancePayHypothesisResultSeverancePayAmount, getSeverancePayHypothesisResultSeverancePayIncludingSocialCharges, getSeverancePayHypothesisResultSocialCharges, getSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges, getSeverancePayHypothesisResultYearsOfService, getseverancePayHypothesisResultId, setSeverancePayHypothesisResultCustomizedLeavingOptionIndicator, setSeverancePayHypothesisResultEmployeeId, setSeverancePayHypothesisResultEmployeeSalaryScale, setSeverancePayHypothesisResultFinalCareerSalary, setSeverancePayHypothesisResultFinalCareerSeniority, setSeverancePayHypothesisResultFinancialRefresh, setSeverancePayHypothesisResultHireDate, setSeverancePayHypothesisResultLifeExpectancy, setSeverancePayHypothesisResultMonthsOfService, setSeverancePayHypothesisResultPresenceExpentancy, setSeverancePayHypothesisResultProfessionalCategoryGroup, setSeverancePayHypothesisResultRefreshedExpectedSeverancePay, setSeverancePayHypothesisResultSelectedRetirementDate, setSeverancePayHypothesisResultSelectedSeniorityYear, setSeverancePayHypothesisResultSeniorityProrata, setSeverancePayHypothesisResultSeverancePayAmount, setSeverancePayHypothesisResultSeverancePayIncludingSocialCharges, setSeverancePayHypothesisResultSocialCharges, setSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges, setSeverancePayHypothesisResultYearsOfService } from '@fasstech/oip-core/entities/severancePayHypothesisResult';
import { SeverancePayHypothesisResultProfessionalCategoryGroupEnum } from '@fasstech/oip-core/entities/severancePayHypothesisResult/enums';
(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 SeverancePayHypothesisResultEntity = await Entities('SeverancePayHypothesisResult').create();
setSeverancePayHypothesisResultCustomizedLeavingOptionIndicator(99, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultEmployeeId('employeeId', SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultEmployeeSalaryScale('employeeSalaryScale', SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultFinalCareerSalary(102, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultFinalCareerSeniority(102, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultFinancialRefresh(102, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultHireDate(new Date('2017-01-01'), SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultLifeExpectancy(108, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultMonthsOfService(109, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultPresenceExpentancy(112, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultProfessionalCategoryGroup(SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SUPERVISOR, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultRefreshedExpectedSeverancePay(114, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultSelectedRetirementDate(new Date('2017-01-01'), SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultSelectedSeniorityYear(115, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultSeniorityProrata(115, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultSeverancePayAmount(115, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultSeverancePayIncludingSocialCharges(115, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultSocialCharges(115, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges(116, SeverancePayHypothesisResultEntity);
setSeverancePayHypothesisResultYearsOfService(121, SeverancePayHypothesisResultEntity);
SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesisResult').save(SeverancePayHypothesisEntity, SeverancePayHypothesisResultEntity);
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 SeverancePayHypothesisResultEntityToTest = await Entities('SeverancePayHypothesisResult').get(SeverancePayHypothesisEntityToTest, getSeverancePayHypothesisResultId(SeverancePayHypothesisResultEntity));
getSeverancePayHypothesisResultCustomizedLeavingOptionIndicator(SeverancePayHypothesisResultEntityToTest); // 99
getSeverancePayHypothesisResultEmployeeId(SeverancePayHypothesisResultEntityToTest); // 'employeeId'
getSeverancePayHypothesisResultEmployeeSalaryScale(SeverancePayHypothesisResultEntityToTest); // 'employeeSalaryScale'
getSeverancePayHypothesisResultFinalCareerSalary(SeverancePayHypothesisResultEntityToTest); // 102
getSeverancePayHypothesisResultFinalCareerSeniority(SeverancePayHypothesisResultEntityToTest); // 102
getSeverancePayHypothesisResultFinancialRefresh(SeverancePayHypothesisResultEntityToTest); // 102
getSeverancePayHypothesisResultHireDate(SeverancePayHypothesisResultEntityToTest); // new Date('2017-01-01')
getSeverancePayHypothesisResultLifeExpectancy(SeverancePayHypothesisResultEntityToTest); // 108
getSeverancePayHypothesisResultMonthsOfService(SeverancePayHypothesisResultEntityToTest); // 109
getSeverancePayHypothesisResultPresenceExpentancy(SeverancePayHypothesisResultEntityToTest); // 112
getSeverancePayHypothesisResultProfessionalCategoryGroup(SeverancePayHypothesisResultEntityToTest); // SeverancePayHypothesisResultProfessionalCategoryGroupEnum.SUPERVISOR
getSeverancePayHypothesisResultRefreshedExpectedSeverancePay(SeverancePayHypothesisResultEntityToTest); // 114
getSeverancePayHypothesisResultSelectedRetirementDate(SeverancePayHypothesisResultEntityToTest); // new Date('2017-01-01')
getSeverancePayHypothesisResultSelectedSeniorityYear(SeverancePayHypothesisResultEntityToTest); // 115
getSeverancePayHypothesisResultSeniorityProrata(SeverancePayHypothesisResultEntityToTest); // 115
getSeverancePayHypothesisResultSeverancePayAmount(SeverancePayHypothesisResultEntityToTest); // 115
getSeverancePayHypothesisResultSeverancePayIncludingSocialCharges(SeverancePayHypothesisResultEntityToTest); // 115
getSeverancePayHypothesisResultSocialCharges(SeverancePayHypothesisResultEntityToTest); // 115
getSeverancePayHypothesisResultTheoricalSeverancePayWithoutSocialCharges(SeverancePayHypothesisResultEntityToTest); // 116
getSeverancePayHypothesisResultYearsOfService(SeverancePayHypothesisResultEntityToTest); // 121
})();