SeverancePayHypothesisCategory
SeverancePayHypothesisCategory
Description
LâentitĂ© SeverancePayHypothesisCategory contient les hypothĂšses de calcul par regroupement de catĂ©gorie.
Relations
Ascendantes
Entité | Propriété |
|---|---|
SeverancePayHypothesis | severancePayHypothesisCategories |
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Ă© SeverancePayHypothesisCategory | getSeverancePayHypothesisCategoryCreatedAt | Lecture seule | - |
createdBy | String | ï»ż | Utilisateur Ă l'origine de la crĂ©ation de l'entitĂ© SeverancePayHypothesisCategory | getSeverancePayHypothesisCategoryCreatedBy | Lecture seule | - |
id | String | ï»ż | Identifiant unique de l'entitĂ© SeverancePayHypothesisCategory | getSeverancePayHypothesisCategoryId | Lecture seule | - |
professionalCategoryGroup | severancePayHypothesisCategoryProfessionalCategoryGroupEnum | 2.7.0 | Il sâagit du regroupement de catĂ©gorie pour un salariĂ©. | getSeverancePayHypothesisCategoryProfessionalCategoryGroup | setSeverancePayHypothesisCategoryProfessionalCategoryGroup | - |
retirementAge | Number | 2.7.0 | Age de départ à la retraite. | getSeverancePayHypothesisCategoryRetirementAge | setSeverancePayHypothesisCategoryRetirementAge | - |
salaryIncreaseRate | Number | 2.7.0 | Taux annuel de progression des salaires. | getSeverancePayHypothesisCategorySalaryIncreaseRate | setSeverancePayHypothesisCategorySalaryIncreaseRate | - |
socialChargesRate | Number | 2.7.0 | Taux de charges sociale. | getSeverancePayHypothesisCategorySocialChargesRate | setSeverancePayHypothesisCategorySocialChargesRate | - |
turnoverCode | String | 2.7.0 | Code de turnover. | getSeverancePayHypothesisCategoryTurnoverCode | setSeverancePayHypothesisCategoryTurnoverCode | - |
updatedAt | Date | ï»ż | Date de modification de l'entitĂ© SeverancePayHypothesisCategory | getSeverancePayHypothesisCategoryUpdatedAt | Lecture seule | - |
updatedBy | String | ï»ż | Utilisateur Ă l'origine de la modification de l'entitĂ© SeverancePayHypothesisCategory | getSeverancePayHypothesisCategoryUpdatedBy | Lecture seule | - |
Enums
severancePayHypothesisCategoryProfessionalCategoryGroupEnum
- severancePayHypothesisCategoryProfessionalCategoryGroupEnum.SENIOR_EXECUTIVE_EMPLOYEE
- severancePayHypothesisCategoryProfessionalCategoryGroupEnum.EXECUTIVE_EMPLOYEE
- severancePayHypothesisCategoryProfessionalCategoryGroupEnum.SUPERVISOR
- severancePayHypothesisCategoryProfessionalCategoryGroupEnum.EMPLOYEE
- severancePayHypothesisCategoryProfessionalCategoryGroupEnum.WORKER
- severancePayHypothesisCategoryProfessionalCategoryGroupEnum.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 { getSeverancePayHypothesisCategoryProfessionalCategoryGroup, getSeverancePayHypothesisCategoryRetirementAge, getSeverancePayHypothesisCategorySalaryIncreaseRate, getSeverancePayHypothesisCategorySocialChargesRate, getSeverancePayHypothesisCategoryTurnoverCode, getseverancePayHypothesisCategoryId, setSeverancePayHypothesisCategoryProfessionalCategoryGroup, setSeverancePayHypothesisCategoryRetirementAge, setSeverancePayHypothesisCategorySalaryIncreaseRate, setSeverancePayHypothesisCategorySocialChargesRate, setSeverancePayHypothesisCategoryTurnoverCode } from '@fasstech/oip-core/entities/severancePayHypothesisCategory';
import { severancePayHypothesisCategoryProfessionalCategoryGroupEnum } from '@fasstech/oip-core/entities/severancePayHypothesisCategory/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 SeverancePayHypothesisCategoryEntity = await Entities('SeverancePayHypothesisCategory').create();
setSeverancePayHypothesisCategoryProfessionalCategoryGroup(severancePayHypothesisCategoryProfessionalCategoryGroupEnum.SUPERVISOR, SeverancePayHypothesisCategoryEntity);
setSeverancePayHypothesisCategoryRetirementAge(114, SeverancePayHypothesisCategoryEntity);
setSeverancePayHypothesisCategorySalaryIncreaseRate(115, SeverancePayHypothesisCategoryEntity);
setSeverancePayHypothesisCategorySocialChargesRate(115, SeverancePayHypothesisCategoryEntity);
setSeverancePayHypothesisCategoryTurnoverCode('turnoverCode', SeverancePayHypothesisCategoryEntity);
SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesisCategory').save(SeverancePayHypothesisEntity, SeverancePayHypothesisCategoryEntity);
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 SeverancePayHypothesisCategoryEntityToTest = await Entities('SeverancePayHypothesisCategory').get(SeverancePayHypothesisEntityToTest, getSeverancePayHypothesisCategoryId(SeverancePayHypothesisCategoryEntity));
getSeverancePayHypothesisCategoryProfessionalCategoryGroup(SeverancePayHypothesisCategoryEntityToTest); // severancePayHypothesisCategoryProfessionalCategoryGroupEnum.SUPERVISOR
getSeverancePayHypothesisCategoryRetirementAge(SeverancePayHypothesisCategoryEntityToTest); // 114
getSeverancePayHypothesisCategorySalaryIncreaseRate(SeverancePayHypothesisCategoryEntityToTest); // 115
getSeverancePayHypothesisCategorySocialChargesRate(SeverancePayHypothesisCategoryEntityToTest); // 115
getSeverancePayHypothesisCategoryTurnoverCode(SeverancePayHypothesisCategoryEntityToTest); // 'turnoverCode'
})();