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 |
Liste des propriétés
Nom | Type | DerniÚre version modifiée | Description | Getter | Setter | Deprecated |
|---|---|---|---|---|---|---|
amountToTransfer | Number | 2.8.0 | 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 | getSeverancePayHypothesisAmountToTransfer | setSeverancePayHypothesisAmountToTransfer | - |
averageYield | Number | 2.8.0 | Il sâagit du rendement moyen en % | getSeverancePayHypothesisAverageYield | setSeverancePayHypothesisAverageYield | - |
corporateTaxRate | Number | 2.7.0 | Taux dâimpĂŽt sur les sociĂ©tĂ©s. | getSeverancePayHypothesisCorporateTaxRate | setSeverancePayHypothesisCorporateTaxRate | - |
createdAt | Date | ï»ż | Date de crĂ©ation de l'entitĂ© SeverancePayHypothesis | getSeverancePayHypothesisCreatedAt | Lecture seule | - |
createdBy | String | ï»ż | Utilisateur Ă l'origine de la crĂ©ation de l'entitĂ© SeverancePayHypothesis | getSeverancePayHypothesisCreatedBy | Lecture seule | - |
duration | Number | 2.7.0 | 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. | getSeverancePayHypothesisDuration | setSeverancePayHypothesisDuration | - |
estimatedLevelOfRisk | severancePayHypothesisEstimatedLevelOfRiskEnum | 2.10.0 | Il s'agit du niveau estimé du risque | getSeverancePayHypothesisEstimatedLevelOfRisk | setSeverancePayHypothesisEstimatedLevelOfRisk | - |
hasAlreadySeverancePayContract | Boolean | 2.8.0 | Il sâagit de savoir si le client a dĂ©jĂ un contrat IFC chez un concurrent | getSeverancePayHypothesisHasAlreadySeverancePayContract | setSeverancePayHypothesisHasAlreadySeverancePayContract | - |
heldedAmountContract | Number | 2.8.0 | Il sâagit du montant dĂ©tenu dans le cadre du contrat chez le concurrent | getSeverancePayHypothesisHeldedAmountContract | setSeverancePayHypothesisHeldedAmountContract | - |
horizon | String | 2.10.0 | Il s'agit de l'horizon de placement | getSeverancePayHypothesisHorizon | setSeverancePayHypothesisHorizon | - |
id | String | ï»ż | Identifiant unique de l'entitĂ© SeverancePayHypothesis | getSeverancePayHypothesisId | Lecture seule | - |
refreshRate | Number | 2.7.0 | Taux dâactualisation. | getSeverancePayHypothesisRefreshRate | setSeverancePayHypothesisRefreshRate | - |
severancePayAmount | Number | 2.7.0 | Il sâagit du montant du passif social pour lâentreprise. | getSeverancePayHypothesisSeverancePayAmount | setSeverancePayHypothesisSeverancePayAmount | - |
socialLiabilityDate | Date | 2.7.0 | Date de calcul du passif social. | getSeverancePayHypothesisSocialLiabilityDate | setSeverancePayHypothesisSocialLiabilityDate | - |
theoricalCompanyTaxGains | Number | 2.7.0 | 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Ă©). | getSeverancePayHypothesisTheoricalCompanyTaxGains | setSeverancePayHypothesisTheoricalCompanyTaxGains | - |
type | severancePayHypothesisTypeEnum | 2.8.0 | Il sâagit du type de simulation | getSeverancePayHypothesisType | setSeverancePayHypothesisType | Utiliser la propriĂ©tĂ© type de l'entitĂ© hypothesis |
updatedAt | Date | ï»ż | Date de modification de l'entitĂ© SeverancePayHypothesis | getSeverancePayHypothesisUpdatedAt | Lecture seule | - |
updatedBy | String | ï»ż | Utilisateur Ă l'origine de la modification de l'entitĂ© SeverancePayHypothesis | getSeverancePayHypothesisUpdatedBy | Lecture seule | - |
Enums
severancePayHypothesisEstimatedLevelOfRiskEnum
- severancePayHypothesisEstimatedLevelOfRiskEnum.HIGH
- severancePayHypothesisEstimatedLevelOfRiskEnum.LOW
- severancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM
severancePayHypothesisTypeEnum
- severancePayHypothesisTypeEnum.SOCIAL_LIABILITY_CALCULATION
- severancePayHypothesisTypeEnum.FUNDING_PLAN_CALCULATION
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, getSeverancePayHypothesisCorporateTaxRate, getSeverancePayHypothesisDuration, getSeverancePayHypothesisEstimatedLevelOfRisk, getSeverancePayHypothesisHasAlreadySeverancePayContract, getSeverancePayHypothesisHeldedAmountContract, getSeverancePayHypothesisHorizon, getSeverancePayHypothesisRefreshRate, getSeverancePayHypothesisSeverancePayAmount, getSeverancePayHypothesisSocialLiabilityDate, getSeverancePayHypothesisTheoricalCompanyTaxGains, getSeverancePayHypothesisType, setSeverancePayHypothesisAmountToTransfer, setSeverancePayHypothesisAverageYield, setSeverancePayHypothesisCorporateTaxRate, setSeverancePayHypothesisDuration, setSeverancePayHypothesisEstimatedLevelOfRisk, setSeverancePayHypothesisHasAlreadySeverancePayContract, setSeverancePayHypothesisHeldedAmountContract, setSeverancePayHypothesisHorizon, setSeverancePayHypothesisRefreshRate, setSeverancePayHypothesisSeverancePayAmount, setSeverancePayHypothesisSocialLiabilityDate, setSeverancePayHypothesisTheoricalCompanyTaxGains, setSeverancePayHypothesisType } from '@fasstech/oip-core/entities/severancePayHypothesis';
import { severancePayHypothesisEstimatedLevelOfRiskEnum, severancePayHypothesisTypeEnum } from '@fasstech/oip-core/entities/severancePayHypothesis/enums';
(async () => {
let ProjectEntity = await Entities('Project').get({ id: projectId });
let OfferEntity = await Entities('Offer').create();
let HypothesisEntity = await Entities('Hypothesis').create();
const SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesis').get(HypothesisEntity);
setSeverancePayHypothesisAmountToTransfer(97, SeverancePayHypothesisEntity);
setSeverancePayHypothesisAverageYield(97, SeverancePayHypothesisEntity);
setSeverancePayHypothesisCorporateTaxRate(99, SeverancePayHypothesisEntity);
setSeverancePayHypothesisDuration(100, SeverancePayHypothesisEntity);
setSeverancePayHypothesisEstimatedLevelOfRisk(severancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM, SeverancePayHypothesisEntity);
setSeverancePayHypothesisHasAlreadySeverancePayContract(true, SeverancePayHypothesisEntity);
setSeverancePayHypothesisHeldedAmountContract(104, SeverancePayHypothesisEntity);
setSeverancePayHypothesisHorizon('horizon', SeverancePayHypothesisEntity);
setSeverancePayHypothesisRefreshRate(114, SeverancePayHypothesisEntity);
setSeverancePayHypothesisSeverancePayAmount(115, SeverancePayHypothesisEntity);
setSeverancePayHypothesisSocialLiabilityDate(new Date('2017-01-01'), SeverancePayHypothesisEntity);
setSeverancePayHypothesisTheoricalCompanyTaxGains(116, SeverancePayHypothesisEntity);
setSeverancePayHypothesisType(severancePayHypothesisTypeEnum.FUNDING_PLAN_CALCULATION, SeverancePayHypothesisEntity);
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);
getSeverancePayHypothesisAmountToTransfer(SeverancePayHypothesisEntityToTest); // 97
getSeverancePayHypothesisAverageYield(SeverancePayHypothesisEntityToTest); // 97
getSeverancePayHypothesisCorporateTaxRate(SeverancePayHypothesisEntityToTest); // 99
getSeverancePayHypothesisDuration(SeverancePayHypothesisEntityToTest); // 100
getSeverancePayHypothesisEstimatedLevelOfRisk(SeverancePayHypothesisEntityToTest); // severancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM
getSeverancePayHypothesisHasAlreadySeverancePayContract(SeverancePayHypothesisEntityToTest); // true
getSeverancePayHypothesisHeldedAmountContract(SeverancePayHypothesisEntityToTest); // 104
getSeverancePayHypothesisHorizon(SeverancePayHypothesisEntityToTest); // 'horizon'
getSeverancePayHypothesisRefreshRate(SeverancePayHypothesisEntityToTest); // 114
getSeverancePayHypothesisSeverancePayAmount(SeverancePayHypothesisEntityToTest); // 115
getSeverancePayHypothesisSocialLiabilityDate(SeverancePayHypothesisEntityToTest); // new Date('2017-01-01')
getSeverancePayHypothesisTheoricalCompanyTaxGains(SeverancePayHypothesisEntityToTest); // 116
getSeverancePayHypothesisType(SeverancePayHypothesisEntityToTest); // severancePayHypothesisTypeEnum.FUNDING_PLAN_CALCULATION
})();