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 |
Propriétés
Nom | Type | Description | Validateur | Lecture seule ? | Dépréciée ? | DerniÚre version modifiée |
|---|---|---|---|---|---|---|
professionalCategoryGroup | ProfessionalCategoryGroupEnum | Il s'agit du regroupement de catĂ©gorie pour un salariĂ©. | ï»ż | ï»ż | ï»ż | 2.7.0 |
retirementAge | Number | Age de dĂ©part Ă la retraite. | ï»ż | ï»ż | ï»ż | 2.7.0 |
salaryIncreaseRate | Number | Taux annuel de progression des salaires. | ï»ż | ï»ż | ï»ż | 2.7.0 |
socialChargesRate | Number | Taux de charges sociale. | ï»ż | ï»ż | ï»ż | 2.7.0 |
turnoverCode | String | Code de turnover. | ï»ż | ï»ż | ï»ż | 2.7.0 |
id | String | Identifiant de l'entitĂ© SeverancePayHypothesisCategory | ï»ż | X | ï»ż | ï»ż |
code | String | Codification fonctionnelle de l'entitĂ© SeverancePayHypothesisCategory | ï»ż | ï»ż | ï»ż | ï»ż |
externalId | String | Identifiant de l'entitĂ© SeverancePayHypothesisCategory dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
externalCode | String | Codification fonctionnelle de l'entitĂ© SeverancePayHypothesisCategory dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
severancePayHypothesisCategoryId | String | Identifiant public de l'entitĂ© SeverancePayHypothesisCategory dans l'OIP | ï»ż | ï»ż | ï»ż | ï»ż |
label | String | Information relative au nom de l'entitĂ© SeverancePayHypothesisCategory dans son contexte d'utilisation | ï»ż | ï»ż | ï»ż | ï»ż |
createdAt | Date | Date de crĂ©ation de l'entitĂ© SeverancePayHypothesisCategory | ï»ż | X | ï»ż | ï»ż |
updatedAt | Date | Date de modification de l'entitĂ© SeverancePayHypothesisCategory | ï»ż | 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 { getSeverancePayHypothesisCategoryCode, getSeverancePayHypothesisCategoryExternalCode, getSeverancePayHypothesisCategoryExternalId, getSeverancePayHypothesisCategoryId, getSeverancePayHypothesisCategoryLabel, getSeverancePayHypothesisCategoryProfessionalCategoryGroup, getSeverancePayHypothesisCategoryRetirementAge, getSeverancePayHypothesisCategorySalaryIncreaseRate, getSeverancePayHypothesisCategorySeverancePayHypothesisCategoryId, getSeverancePayHypothesisCategorySocialChargesRate, getSeverancePayHypothesisCategoryTurnoverCode, setSeverancePayHypothesisCategoryCode, setSeverancePayHypothesisCategoryExternalCode, setSeverancePayHypothesisCategoryExternalId, setSeverancePayHypothesisCategoryLabel, setSeverancePayHypothesisCategoryProfessionalCategoryGroup, setSeverancePayHypothesisCategoryRetirementAge, setSeverancePayHypothesisCategorySalaryIncreaseRate, setSeverancePayHypothesisCategorySeverancePayHypothesisCategoryId, setSeverancePayHypothesisCategorySocialChargesRate, setSeverancePayHypothesisCategoryTurnoverCode } from '@fasstech/oip-core/entities/SeverancePayHypothesisCategory';
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 severancePayHypothesisCategory = await Entities('SeverancePayHypothesisCategory').create();
setSeverancePayHypothesisCategoryProfessionalCategoryGroup(ProfessionalCategoryGroupEnum.SUPERVISOR, severancePayHypothesisCategory);
setSeverancePayHypothesisCategoryRetirementAge(114, severancePayHypothesisCategory);
setSeverancePayHypothesisCategorySalaryIncreaseRate(115, severancePayHypothesisCategory);
setSeverancePayHypothesisCategorySocialChargesRate(115, severancePayHypothesisCategory);
setSeverancePayHypothesisCategoryTurnoverCode('turnoverCode', severancePayHypothesisCategory);
setSeverancePayHypothesisCategoryCode('code', severancePayHypothesisCategory);
setSeverancePayHypothesisCategoryExternalId('externalId', severancePayHypothesisCategory);
setSeverancePayHypothesisCategoryExternalCode('externalCode', severancePayHypothesisCategory);
setSeverancePayHypothesisCategorySeverancePayHypothesisCategoryId('severancePayHypothesisCategoryId', severancePayHypothesisCategory);
setSeverancePayHypothesisCategoryLabel('label', severancePayHypothesisCategory);
severancePayHypothesis = await Entities('SeverancePayHypothesisCategory').save(severancePayHypothesis, severancePayHypothesisCategory);
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 severancePayHypothesisCategoryToTest = await Entities('SeverancePayHypothesisCategory').get(severancePayHypothesisToTest, { filter: ({ id }) => id === getSeverancePayHypothesisCategoryId(severancePayHypothesisCategory) });
getSeverancePayHypothesisCategoryProfessionalCategoryGroup(severancePayHypothesisCategoryToTest); // ProfessionalCategoryGroupEnum.SUPERVISOR
getSeverancePayHypothesisCategoryRetirementAge(severancePayHypothesisCategoryToTest); // 114
getSeverancePayHypothesisCategorySalaryIncreaseRate(severancePayHypothesisCategoryToTest); // 115
getSeverancePayHypothesisCategorySocialChargesRate(severancePayHypothesisCategoryToTest); // 115
getSeverancePayHypothesisCategoryTurnoverCode(severancePayHypothesisCategoryToTest); // 'turnoverCode'
getSeverancePayHypothesisCategoryCode(severancePayHypothesisCategoryToTest); // 'code'
getSeverancePayHypothesisCategoryExternalId(severancePayHypothesisCategoryToTest); // 'externalId'
getSeverancePayHypothesisCategoryExternalCode(severancePayHypothesisCategoryToTest); // 'externalCode'
getSeverancePayHypothesisCategorySeverancePayHypothesisCategoryId(severancePayHypothesisCategoryToTest); // 'severancePayHypothesisCategoryId'
getSeverancePayHypothesisCategoryLabel(severancePayHypothesisCategoryToTest); // 'label'
})();