SeverancePayHypothesis
SeverancePayHypothesis
Description
L'entité SeverancePayHypothesis contient les différents paramÚtres nécessaires au simulateur d'indemnité de fin de carriÚre. Ce sont les hypothÚses globales de calcul.
Relations
Ascendantes
Entité | Propriété |
|---|---|
Hypothesis | severancePayHypothesis |
Descendantes
Entité | Propriété |
|---|---|
History | history |
SeverancePayAverageDemography | severancePayAverageDemographies |
SeverancePayFundingPlan | severancePayFundingPlans |
SeverancePayHypothesisCategory | severancePayHypothesisCategories |
SeverancePayHypothesisIndemnities | severancePayHypothesisIndemnities |
SeverancePayHypothesisResult | severancePayHypothesisResults |
SeverancePayHypothesisSolution | severancePayHypothesisSolutions |
SeverancePaySocialLiabilityByAgeRange | severancePaySocialLiabilityByAgeRanges |
SeverancePaySocialLiabilityByCategory | severancePaySocialLiabilityByCategories |
SeverancePaySocialLiabilitySchedule | severancePaySocialLiabilitySchedules |
SeverancePayTheorical | severancePayTheoricals |
Propriétés
Nom | Type | Description | Validateur | Lecture seule ? | Dépréciée ? | DerniÚre version modifiée |
|---|---|---|---|---|---|---|
amountToTransfer | Number | Il s'agit du montant Ă transfĂ©rer (frais inclus) lorsque le client possĂšde dĂ©jĂ un contrat IFC et qu'il souhaite transfĂ©rer une partie ou la totalitĂ© de ce montant dĂ©tenu Ă la concurrence | ï»ż | ï»ż | ï»ż | 2.8.0 |
averageYield | Number | Il s'agit du rendement moyen en % | ï»ż | ï»ż | ï»ż | 2.8.0 |
corporateTaxRate | Number | Taux d'impĂŽt sur les sociĂ©tĂ©s. | ï»ż | ï»ż | ï»ż | 2.7.0 |
duration | Number | Il s'agit de la durĂ©e moyenne actualisĂ©e et probabilisĂ©e de versement des indemnitĂ©s de fin de carriĂšre pour l'entreprise. | ï»ż | ï»ż | ï»ż | 2.7.0 |
estimatedLevelOfRisk | SeverancePayHypothesisEstimatedLevelOfRiskEnum | Il s'agit du niveau estimĂ© du risque. | ï»ż | ï»ż | ï»ż | 2.10.0 |
hasAlreadySeverancePayContract | Boolean | Il s'agit de savoir si le client a dĂ©jĂ un contrat IFC chez un concurrent | ï»ż | ï»ż | ï»ż | 2.8.0 |
heldedAmountContract | Number | Il s'agit du montant dĂ©tenu dans le cadre du contrat chez le concurrent | ï»ż | ï»ż | ï»ż | 2.8.0 |
horizon | String | Il s'agit de l'horizon de placement. | ï»ż | ï»ż | ï»ż | 2.10.0 |
refreshRate | Number | Taux d'actualisation. | ï»ż | ï»ż | ï»ż | 2.7.0 |
severancePayAmount | Number | Il s'agit du montant du passif social pour l'entreprise. | ï»ż | ï»ż | ï»ż | 2.7.0 |
socialLiabilityDate | Date | Date de calcul du passif social. | ï»ż | ï»ż | ï»ż | 2.7.0 |
theoricalCompanyTaxGains | Number | Il s'agit du gain d'ImpĂŽts thĂ©orique sur les sociĂ©tĂ©s pour l'entreprise. Estimation basĂ©e sur : (Passif social) x (Taux d'IS sĂ©lectionnĂ©). | ï»ż | ï»ż | ï»ż | 2.7.0 |
id | String | Identifiant de l'entitĂ© SeverancePayHypothesis | ï»ż | X | ï»ż | ï»ż |
code | String | Codification fonctionnelle de l'entitĂ© SeverancePayHypothesis | ï»ż | ï»ż | ï»ż | ï»ż |
externalId | String | Identifiant de l'entitĂ© SeverancePayHypothesis dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
externalCode | String | Codification fonctionnelle de l'entitĂ© SeverancePayHypothesis dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
severancePayHypothesisId | String | Identifiant public de l'entitĂ© SeverancePayHypothesis dans l'OIP | ï»ż | ï»ż | ï»ż | ï»ż |
label | String | Information relative au nom de l'entitĂ© SeverancePayHypothesis dans son contexte d'utilisation | ï»ż | ï»ż | ï»ż | ï»ż |
createdAt | Date | Date de crĂ©ation de l'entitĂ© SeverancePayHypothesis | ï»ż | X | ï»ż | ï»ż |
updatedAt | Date | Date de modification de l'entitĂ© SeverancePayHypothesis | ï»ż | X | ï»ż | ï»ż |
Enumérations
SeverancePayHypothesisEstimatedLevelOfRiskEnum
- HIGH
- LOW
- MEDIUM
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 { getSeverancePayHypothesisAmountToTransfer, getSeverancePayHypothesisAverageYield, getSeverancePayHypothesisCode, getSeverancePayHypothesisCorporateTaxRate, getSeverancePayHypothesisDuration, getSeverancePayHypothesisEstimatedLevelOfRisk, getSeverancePayHypothesisExternalCode, getSeverancePayHypothesisExternalId, getSeverancePayHypothesisHasAlreadySeverancePayContract, getSeverancePayHypothesisHeldedAmountContract, getSeverancePayHypothesisHorizon, getSeverancePayHypothesisId, getSeverancePayHypothesisLabel, getSeverancePayHypothesisRefreshRate, getSeverancePayHypothesisSeverancePayAmount, getSeverancePayHypothesisSeverancePayHypothesisId, getSeverancePayHypothesisSocialLiabilityDate, getSeverancePayHypothesisTheoricalCompanyTaxGains, setSeverancePayHypothesisAmountToTransfer, setSeverancePayHypothesisAverageYield, setSeverancePayHypothesisCode, setSeverancePayHypothesisCorporateTaxRate, setSeverancePayHypothesisDuration, setSeverancePayHypothesisEstimatedLevelOfRisk, setSeverancePayHypothesisExternalCode, setSeverancePayHypothesisExternalId, setSeverancePayHypothesisHasAlreadySeverancePayContract, setSeverancePayHypothesisHeldedAmountContract, setSeverancePayHypothesisHorizon, setSeverancePayHypothesisLabel, setSeverancePayHypothesisRefreshRate, setSeverancePayHypothesisSeverancePayAmount, setSeverancePayHypothesisSeverancePayHypothesisId, setSeverancePayHypothesisSocialLiabilityDate, setSeverancePayHypothesisTheoricalCompanyTaxGains } from '@fasstech/oip-core/entities/SeverancePayHypothesis';
import { SeverancePayHypothesisEstimatedLevelOfRiskEnum } from '@fasstech/oip-core/entities/SeverancePayHypothesis/enums';
(async () => {
let project = await Entities('Project').create();
let offer = await Entities('Offer').create();
let hypothesis = await Entities('Hypothesis').create();
const severancePayHypothesis = await Entities('SeverancePayHypothesis').create();
setSeverancePayHypothesisAmountToTransfer(97, severancePayHypothesis);
setSeverancePayHypothesisAverageYield(97, severancePayHypothesis);
setSeverancePayHypothesisCorporateTaxRate(99, severancePayHypothesis);
setSeverancePayHypothesisDuration(100, severancePayHypothesis);
setSeverancePayHypothesisEstimatedLevelOfRisk(SeverancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM, severancePayHypothesis);
setSeverancePayHypothesisHasAlreadySeverancePayContract(true, severancePayHypothesis);
setSeverancePayHypothesisHeldedAmountContract(104, severancePayHypothesis);
setSeverancePayHypothesisHorizon('horizon', severancePayHypothesis);
setSeverancePayHypothesisRefreshRate(114, severancePayHypothesis);
setSeverancePayHypothesisSeverancePayAmount(115, severancePayHypothesis);
setSeverancePayHypothesisSocialLiabilityDate(new Date('2017-01-01'), severancePayHypothesis);
setSeverancePayHypothesisTheoricalCompanyTaxGains(116, severancePayHypothesis);
setSeverancePayHypothesisCode('code', severancePayHypothesis);
setSeverancePayHypothesisExternalId('externalId', severancePayHypothesis);
setSeverancePayHypothesisExternalCode('externalCode', severancePayHypothesis);
setSeverancePayHypothesisSeverancePayHypothesisId('severancePayHypothesisId', severancePayHypothesis);
setSeverancePayHypothesisLabel('label', severancePayHypothesis);
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) });
getSeverancePayHypothesisAmountToTransfer(severancePayHypothesisToTest); // 97
getSeverancePayHypothesisAverageYield(severancePayHypothesisToTest); // 97
getSeverancePayHypothesisCorporateTaxRate(severancePayHypothesisToTest); // 99
getSeverancePayHypothesisDuration(severancePayHypothesisToTest); // 100
getSeverancePayHypothesisEstimatedLevelOfRisk(severancePayHypothesisToTest); // SeverancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM
getSeverancePayHypothesisHasAlreadySeverancePayContract(severancePayHypothesisToTest); // true
getSeverancePayHypothesisHeldedAmountContract(severancePayHypothesisToTest); // 104
getSeverancePayHypothesisHorizon(severancePayHypothesisToTest); // 'horizon'
getSeverancePayHypothesisRefreshRate(severancePayHypothesisToTest); // 114
getSeverancePayHypothesisSeverancePayAmount(severancePayHypothesisToTest); // 115
getSeverancePayHypothesisSocialLiabilityDate(severancePayHypothesisToTest); // new Date('2017-01-01')
getSeverancePayHypothesisTheoricalCompanyTaxGains(severancePayHypothesisToTest); // 116
getSeverancePayHypothesisCode(severancePayHypothesisToTest); // 'code'
getSeverancePayHypothesisExternalId(severancePayHypothesisToTest); // 'externalId'
getSeverancePayHypothesisExternalCode(severancePayHypothesisToTest); // 'externalCode'
getSeverancePayHypothesisSeverancePayHypothesisId(severancePayHypothesisToTest); // 'severancePayHypothesisId'
getSeverancePayHypothesisLabel(severancePayHypothesisToTest); // 'label'
})();