SeverancePayHypothesisSolution
SeverancePayHypothesisSolution
Description
LâentitĂ© SeverancePayHypothesisSolution contient les diffĂ©rentes informations liĂ©es Ă la solution de plan de financement.
Relations
Ascendantes
Entité | Propriété |
|---|---|
SeverancePayHypothesis | severancePayHypothesisSolutions |
Descendantes
Entité | Propriété |
|---|---|
History | history |
SeverancePayHypothesisSolutionFundingPlan | severancePayHypothesisSolutionFundingPlans |
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Ă© SeverancePayHypothesisSolution | getSeverancePayHypothesisSolutionCreatedAt | Lecture seule | - |
createdBy | String | ï»ż | Utilisateur Ă l'origine de la crĂ©ation de l'entitĂ© SeverancePayHypothesisSolution | getSeverancePayHypothesisSolutionCreatedBy | Lecture seule | - |
depositFee | Number | 2.8.0 | Il sâagit des frais sur versements. | getSeverancePayHypothesisSolutionDepositFee | setSeverancePayHypothesisSolutionDepositFee | - |
eurosDistributionPercentage | Number | 2.8.0 | Il sâagit du pourcentage de rĂ©partition entre les fonds en euros et en unitĂ© de compte. Ici câest celui pour les fonds en euros. | getSeverancePayHypothesisSolutionEurosDistributionPercentage | setSeverancePayHypothesisSolutionEurosDistributionPercentage | - |
eurosExpenseRatio | Number | 2.8.0 | Il sâagit des frais sur encours en euros. | getSeverancePayHypothesisSolutionEurosExpenseRatio | setSeverancePayHypothesisSolutionEurosExpenseRatio | - |
firstDeposit | Number | 2.8.0 | Il sâagit du versement initial effectuĂ© la premiĂšre annĂ©e. | getSeverancePayHypothesisSolutionFirstDeposit | setSeverancePayHypothesisSolutionFirstDeposit | - |
id | String | ï»ż | Identifiant unique de l'entitĂ© SeverancePayHypothesisSolution | getSeverancePayHypothesisSolutionId | Lecture seule | - |
isSelected | Boolean | 2.10.0 | Il s'agit de savoir si la solution financiÚre a été sélectionnée. | getSeverancePayHypothesisSolutionIsSelected | setSeverancePayHypothesisSolutionIsSelected | - |
periodicDeposit | Number | 2.8.0 | Il sâagit du versement pĂ©riodique. | getSeverancePayHypothesisSolutionPeriodicDeposit | setSeverancePayHypothesisSolutionPeriodicDeposit | - |
transferFee | Number | 2.8.0 | Il sâagit des frais sur transfert. | getSeverancePayHypothesisSolutionTransferFee | setSeverancePayHypothesisSolutionTransferFee | - |
type | severancePayHypothesisSolutionTypeEnum | 2.8.0 | Il sâagit du type de solution de plan de financement. | getSeverancePayHypothesisSolutionType | setSeverancePayHypothesisSolutionType | - |
unitOfAccountsExpenseRatio | Number | 2.8.0 | Il sâagit des frais sur encours en unitĂ©s de compte. | getSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio | setSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio | - |
unitofAccountsDistributionPercentage | Number | 2.8.0 | Il sâagit du pourcentage de rĂ©partition entre les fonds en euros et en unitĂ© de compte. Ici câest celui pour les fonds en unitĂ©s de compte. | getSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage | setSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage | - |
updatedAt | Date | ï»ż | Date de modification de l'entitĂ© SeverancePayHypothesisSolution | getSeverancePayHypothesisSolutionUpdatedAt | Lecture seule | - |
updatedBy | String | ï»ż | Utilisateur Ă l'origine de la modification de l'entitĂ© SeverancePayHypothesisSolution | getSeverancePayHypothesisSolutionUpdatedBy | Lecture seule | - |
Enums
severancePayHypothesisSolutionTypeEnum
- severancePayHypothesisSolutionTypeEnum.RETROSPECTIVE_ADJUSTMENT
- severancePayHypothesisSolutionTypeEnum.AMORTIZED
- severancePayHypothesisSolutionTypeEnum.CUSTOMIZED
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 { getSeverancePayHypothesisSolutionDepositFee, getSeverancePayHypothesisSolutionEurosDistributionPercentage, getSeverancePayHypothesisSolutionEurosExpenseRatio, getSeverancePayHypothesisSolutionFirstDeposit, getSeverancePayHypothesisSolutionIsSelected, getSeverancePayHypothesisSolutionPeriodicDeposit, getSeverancePayHypothesisSolutionTransferFee, getSeverancePayHypothesisSolutionType, getSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio, getSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage, getseverancePayHypothesisSolutionId, setSeverancePayHypothesisSolutionDepositFee, setSeverancePayHypothesisSolutionEurosDistributionPercentage, setSeverancePayHypothesisSolutionEurosExpenseRatio, setSeverancePayHypothesisSolutionFirstDeposit, setSeverancePayHypothesisSolutionIsSelected, setSeverancePayHypothesisSolutionPeriodicDeposit, setSeverancePayHypothesisSolutionTransferFee, setSeverancePayHypothesisSolutionType, setSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio, setSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage } from '@fasstech/oip-core/entities/severancePayHypothesisSolution';
import { severancePayHypothesisSolutionTypeEnum } from '@fasstech/oip-core/entities/severancePayHypothesisSolution/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 SeverancePayHypothesisSolutionEntity = await Entities('SeverancePayHypothesisSolution').create();
setSeverancePayHypothesisSolutionDepositFee(100, SeverancePayHypothesisSolutionEntity);
setSeverancePayHypothesisSolutionEurosDistributionPercentage(101, SeverancePayHypothesisSolutionEntity);
setSeverancePayHypothesisSolutionEurosExpenseRatio(101, SeverancePayHypothesisSolutionEntity);
setSeverancePayHypothesisSolutionFirstDeposit(102, SeverancePayHypothesisSolutionEntity);
setSeverancePayHypothesisSolutionIsSelected(false, SeverancePayHypothesisSolutionEntity);
setSeverancePayHypothesisSolutionPeriodicDeposit(112, SeverancePayHypothesisSolutionEntity);
setSeverancePayHypothesisSolutionTransferFee(116, SeverancePayHypothesisSolutionEntity);
setSeverancePayHypothesisSolutionType(severancePayHypothesisSolutionTypeEnum.RETROSPECTIVE_ADJUSTMENT, SeverancePayHypothesisSolutionEntity);
setSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio(117, SeverancePayHypothesisSolutionEntity);
setSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage(117, SeverancePayHypothesisSolutionEntity);
SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesisSolution').save(SeverancePayHypothesisEntity, SeverancePayHypothesisSolutionEntity);
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 SeverancePayHypothesisSolutionEntityToTest = await Entities('SeverancePayHypothesisSolution').get(SeverancePayHypothesisEntityToTest, getSeverancePayHypothesisSolutionId(SeverancePayHypothesisSolutionEntity));
getSeverancePayHypothesisSolutionDepositFee(SeverancePayHypothesisSolutionEntityToTest); // 100
getSeverancePayHypothesisSolutionEurosDistributionPercentage(SeverancePayHypothesisSolutionEntityToTest); // 101
getSeverancePayHypothesisSolutionEurosExpenseRatio(SeverancePayHypothesisSolutionEntityToTest); // 101
getSeverancePayHypothesisSolutionFirstDeposit(SeverancePayHypothesisSolutionEntityToTest); // 102
getSeverancePayHypothesisSolutionIsSelected(SeverancePayHypothesisSolutionEntityToTest); // false
getSeverancePayHypothesisSolutionPeriodicDeposit(SeverancePayHypothesisSolutionEntityToTest); // 112
getSeverancePayHypothesisSolutionTransferFee(SeverancePayHypothesisSolutionEntityToTest); // 116
getSeverancePayHypothesisSolutionType(SeverancePayHypothesisSolutionEntityToTest); // severancePayHypothesisSolutionTypeEnum.RETROSPECTIVE_ADJUSTMENT
getSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio(SeverancePayHypothesisSolutionEntityToTest); // 117
getSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage(SeverancePayHypothesisSolutionEntityToTest); // 117
})();