@socialgouv/modeles-social 4.97.1 → 4.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/bin/modeles/base/__tests__/indemnite-licenciement/anciennete.spec.js +2 -2
- package/bin/modeles/base/seniority.js +1 -2
- package/bin/modeles/common/factory/salary.js +3 -0
- package/bin/modeles/common/motif-keys.d.ts +0 -1
- package/bin/modeles/common/motif-keys.js +0 -1
- package/bin/modeles/common/supported-agreements.d.ts +1 -0
- package/bin/modeles/common/supported-agreements.js +2 -0
- package/bin/modeles/common/types/salary.d.ts +2 -2
- package/bin/modeles/common/utils/notifications.d.ts +1 -1
- package/bin/modeles/conventions/1090_automobiles/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/1090_automobiles/seniority.js +0 -1
- package/bin/modeles/conventions/1351_prevention_secu_ent/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/1518_education_loisirs/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/1527_immobilier/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/16_transports_routiers/__tests__/indemnite-licenciement/anciennete.spec.js +2 -2
- package/bin/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/anciennete.spec.js +1 -32
- package/bin/modeles/conventions/1996_pharmacie/seniority.js +0 -3
- package/bin/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/2216_commerces_detail_alimentation/seniority.js +1 -18
- package/bin/modeles/conventions/2511_sport/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/2511_sport/seniority.js +1 -2
- package/bin/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/bin/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/formule.spec.js +37 -0
- package/bin/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/bin/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/indemnite.spec.js +47 -0
- package/bin/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/bin/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/references.spec.js +47 -0
- package/bin/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
- package/bin/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/salaire-ref.spec.js +67 -0
- package/bin/modeles/conventions/2596_coiffure/index.d.ts +1 -0
- package/bin/modeles/conventions/2596_coiffure/index.js +17 -0
- package/bin/modeles/conventions/2596_coiffure/salary.d.ts +13 -0
- package/bin/modeles/conventions/2596_coiffure/salary.js +36 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/2941_aide_accompagnement_soins_services_domicile/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/3043_entreprises_proprete/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/3239_particuliers_employeurs_domicile/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/3239_particuliers_employeurs_domicile/seniority.js +1 -1
- package/bin/modeles/conventions/413_handicap/__tests__/indemnite-licenciement/anciennete.spec.js +2 -2
- package/bin/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/anciennete.spec.js +12 -54
- package/bin/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/missing-var.spec.js +0 -2
- package/bin/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/notif.spec.d.ts +1 -0
- package/bin/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/notif.spec.js +27 -0
- package/bin/modeles/conventions/44_industries_chimiques/seniority.js +2 -1
- package/bin/modeles/conventions/650_metallurgie_ingenieurs_cadres/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/index.d.ts +1 -0
- package/bin/modeles/conventions/index.js +1 -0
- package/lib/modeles/base/__tests__/indemnite-licenciement/anciennete.spec.js +2 -2
- package/lib/modeles/base/seniority.js +1 -2
- package/lib/modeles/common/factory/salary.js +3 -0
- package/lib/modeles/common/motif-keys.d.ts +0 -1
- package/lib/modeles/common/motif-keys.js +0 -1
- package/lib/modeles/common/supported-agreements.d.ts +1 -0
- package/lib/modeles/common/supported-agreements.js +2 -0
- package/lib/modeles/common/types/salary.d.ts +2 -2
- package/lib/modeles/common/utils/ccn-supported.json +1 -1
- package/lib/modeles/common/utils/notifications.d.ts +1 -1
- package/lib/modeles/conventions/1090_automobiles/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/1090_automobiles/seniority.js +0 -1
- package/lib/modeles/conventions/1351_prevention_secu_ent/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/1518_education_loisirs/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/1527_immobilier/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/16_transports_routiers/__tests__/indemnite-licenciement/anciennete.spec.js +2 -2
- package/lib/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/anciennete.spec.js +1 -32
- package/lib/modeles/conventions/1996_pharmacie/seniority.js +0 -3
- package/lib/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/2216_commerces_detail_alimentation/seniority.js +1 -18
- package/lib/modeles/conventions/2511_sport/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/2511_sport/seniority.js +1 -2
- package/lib/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/lib/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/formule.spec.js +37 -0
- package/lib/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/lib/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/indemnite.spec.js +47 -0
- package/lib/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/lib/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/references.spec.js +47 -0
- package/lib/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
- package/lib/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/salaire-ref.spec.js +67 -0
- package/lib/modeles/conventions/2596_coiffure/index.d.ts +1 -0
- package/lib/modeles/conventions/2596_coiffure/index.js +17 -0
- package/lib/modeles/conventions/2596_coiffure/salary.d.ts +13 -0
- package/lib/modeles/conventions/2596_coiffure/salary.js +36 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/2941_aide_accompagnement_soins_services_domicile/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/3043_entreprises_proprete/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/3239_particuliers_employeurs_domicile/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/3239_particuliers_employeurs_domicile/seniority.js +1 -1
- package/lib/modeles/conventions/413_handicap/__tests__/indemnite-licenciement/anciennete.spec.js +2 -2
- package/lib/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/anciennete.spec.js +12 -54
- package/lib/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/missing-var.spec.js +0 -2
- package/lib/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/notif.spec.d.ts +1 -0
- package/lib/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/notif.spec.js +27 -0
- package/lib/modeles/conventions/44_industries_chimiques/seniority.js +2 -1
- package/lib/modeles/conventions/650_metallurgie_ingenieurs_cadres/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/index.d.ts +1 -0
- package/lib/modeles/conventions/index.js +1 -0
- package/lib/modeles/modeles-indemnite-licenciement.json +156 -5
- package/package.json +2 -2
- package/src/modeles/base/__tests__/indemnite-licenciement/anciennete.spec.ts +31 -35
- package/src/modeles/base/seniority.ts +1 -2
- package/src/modeles/common/factory/salary.ts +3 -0
- package/src/modeles/common/motif-keys.ts +0 -1
- package/src/modeles/common/supported-agreements.ts +2 -0
- package/src/modeles/common/types/salary.ts +14 -11
- package/src/modeles/common/utils/notifications.ts +1 -1
- package/src/modeles/conventions/1090_automobiles/__tests__/indemnite-licenciement/anciennete.spec.ts +20 -20
- package/src/modeles/conventions/1090_automobiles/seniority.ts +0 -1
- package/src/modeles/conventions/1351_prevention_secu_ent/__tests__/indemnite-licenciement/anciennete.spec.ts +5 -5
- package/src/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/anciennete.spec.ts +23 -24
- package/src/modeles/conventions/1518_education_loisirs/__tests__/indemnite-licenciement/anciennete.spec.ts +5 -5
- package/src/modeles/conventions/1527_immobilier/__tests__/indemnite-licenciement/anciennete.spec.ts +8 -8
- package/src/modeles/conventions/16_transports_routiers/__tests__/indemnite-licenciement/anciennete.spec.ts +14 -15
- package/src/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/anciennete.spec.ts +8 -40
- package/src/modeles/conventions/1996_pharmacie/seniority.ts +0 -6
- package/src/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/anciennete.spec.ts +21 -22
- package/src/modeles/conventions/2216_commerces_detail_alimentation/seniority.ts +1 -11
- package/src/modeles/conventions/2511_sport/__tests__/indemnite-licenciement/anciennete.spec.ts +14 -16
- package/src/modeles/conventions/2511_sport/seniority.ts +1 -4
- package/src/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/formule.spec.ts +66 -0
- package/src/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/indemnite.spec.ts +76 -0
- package/src/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/references.spec.ts +69 -0
- package/src/modeles/conventions/2596_coiffure/__tests__/indemnite-licenciement/salaire-ref.spec.ts +80 -0
- package/src/modeles/conventions/2596_coiffure/indemnite-licenciement.yaml +108 -0
- package/src/modeles/conventions/2596_coiffure/index.ts +1 -0
- package/src/modeles/conventions/2596_coiffure/salary.ts +46 -0
- package/src/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.ts +7 -7
- package/src/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/anciennete.spec.ts +6 -6
- package/src/modeles/conventions/2941_aide_accompagnement_soins_services_domicile/__tests__/indemnite-licenciement/anciennete.spec.ts +7 -7
- package/src/modeles/conventions/3043_entreprises_proprete/__tests__/indemnite-licenciement/anciennete.spec.ts +16 -16
- package/src/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/anciennete.spec.ts +5 -5
- package/src/modeles/conventions/3239_particuliers_employeurs_domicile/__tests__/indemnite-licenciement/anciennete.spec.ts +15 -15
- package/src/modeles/conventions/3239_particuliers_employeurs_domicile/seniority.ts +1 -1
- package/src/modeles/conventions/413_handicap/__tests__/indemnite-licenciement/anciennete.spec.ts +14 -15
- package/src/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/anciennete.spec.ts +14 -57
- package/src/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/missing-var.spec.ts +0 -2
- package/src/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/notif.spec.ts +57 -0
- package/src/modeles/conventions/44_industries_chimiques/indemnite-licenciement.yaml +7 -4
- package/src/modeles/conventions/44_industries_chimiques/seniority.ts +4 -1
- package/src/modeles/conventions/650_metallurgie_ingenieurs_cadres/__tests__/indemnite-licenciement/anciennete.spec.ts +17 -17
- package/src/modeles/conventions/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.98.0](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.97.1...v4.98.0) (2023-04-20)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **indemnite-licenciement:** ajout congé parental à temps partiel dans le texte d'intro d'absence ([#5102](https://github.com/SocialGouv/code-du-travail-numerique/issues/5102)) ([d4c3508](https://github.com/SocialGouv/code-du-travail-numerique/commit/d4c35082c78c0c6c11325fa8dec28942c39dc949))
|
|
11
|
+
- **indemnite-licenciement:** retours sur la CC 44 ([#5113](https://github.com/SocialGouv/code-du-travail-numerique/issues/5113)) ([6275b0e](https://github.com/SocialGouv/code-du-travail-numerique/commit/6275b0eed42cee14b0b45df00635bd230ceb3736))
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- **indemnite de licenciement:** add cc 2596 ([#5029](https://github.com/SocialGouv/code-du-travail-numerique/issues/5029)) ([6dc0f5a](https://github.com/SocialGouv/code-du-travail-numerique/commit/6dc0f5a763433c1034c85d1b943b406ba044fded))
|
|
16
|
+
- **indemnité licenciement:** remove congé paternité as it is now included in the ancienneté ([#5017](https://github.com/SocialGouv/code-du-travail-numerique/issues/5017)) ([8a4ca24](https://github.com/SocialGouv/code-du-travail-numerique/commit/8a4ca2451382cdbfd7626fcdccf10668ec072046))
|
|
17
|
+
|
|
6
18
|
## [4.97.1](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.97.0...v4.97.1) (2023-04-11)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @socialgouv/modeles-social
|
|
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
var common_1 = require("../../../common");
|
|
8
8
|
describe("Indemnité légale de licenciement avec une ancienneté spécifiée", function () {
|
|
9
|
-
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { key: common_1.MotifKeys.maladieNonPro } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducation } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }, { motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.2916666666666667, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/01/2021", "20/02/2021", -0.625, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/2020", "01/02/2021", 1)("Calcul de l'ancienneté pour le droit avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
9
|
+
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { key: common_1.MotifKeys.maladieNonPro } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducation } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }], "20/01/2021", "20/02/2021", -0.5416666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/2020", "01/02/2021", 1)("$# Calcul de l'ancienneté pour le droit avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
10
10
|
var absences = _a.absences, entryDate = _a.entryDate, exitDate = _a.exitDate, expectedAnciennete = _a.expectedAnciennete;
|
|
11
11
|
var seniority = new common_1.SeniorityFactory().create(common_1.SupportedCcIndemniteLicenciement.default);
|
|
12
12
|
var result = seniority.computeRequiredSeniority({
|
|
@@ -17,7 +17,7 @@ describe("Indemnité légale de licenciement avec une ancienneté spécifiée",
|
|
|
17
17
|
});
|
|
18
18
|
expect(result.value).toEqual(expectedAnciennete);
|
|
19
19
|
});
|
|
20
|
-
test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { key: common_1.MotifKeys.maladieNonPro } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducation } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }, { motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.2916666666666667, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/01/2021", "20/02/2021", -0.625, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "01/01/1979", "01/01/2021", 42)("Calcul de l'ancienneté pour le calcul avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
20
|
+
test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { key: common_1.MotifKeys.maladieNonPro } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducation } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }], "20/01/2021", "20/02/2021", -0.5416666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42)("$# Calcul de l'ancienneté pour le calcul avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
21
21
|
var absences = _a.absences, entryDate = _a.entryDate, exitDate = _a.exitDate, expectedAnciennete = _a.expectedAnciennete;
|
|
22
22
|
var seniority = new common_1.SeniorityFactory().create(common_1.SupportedCcIndemniteLicenciement.default);
|
|
23
23
|
var result = seniority.computeSeniority({
|
|
@@ -37,13 +37,12 @@ exports.LEGAL_MOTIFS = [
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
key: motif_keys_1.MotifKeys.congesParentalEducation,
|
|
40
|
-
label: "Congé parental d'éducation",
|
|
40
|
+
label: "Congé parental d'éducation à temps plein",
|
|
41
41
|
value: 0.5,
|
|
42
42
|
},
|
|
43
43
|
{ key: motif_keys_1.MotifKeys.congesSansSolde, label: "Congés sans solde", value: 1 },
|
|
44
44
|
{ key: motif_keys_1.MotifKeys.greve, label: "Grève", value: 1 },
|
|
45
45
|
{ key: motif_keys_1.MotifKeys.miseAPied, label: "Mise à pied", value: 1 },
|
|
46
|
-
{ key: motif_keys_1.MotifKeys.congesPaternite, label: "Congé de paternité", value: 1 },
|
|
47
46
|
];
|
|
48
47
|
var SeniorityLegal = /** @class */ (function (_super) {
|
|
49
48
|
__extends(SeniorityLegal, _super);
|
|
@@ -14,6 +14,7 @@ var _1486_bureaux_etudes_techniques_1 = require("../../conventions/1486_bureaux_
|
|
|
14
14
|
var _1516_organismes_formation_1 = require("../../conventions/1516_organismes_formation");
|
|
15
15
|
var _1527_immobilier_1 = require("../../conventions/1527_immobilier");
|
|
16
16
|
var _2098_personnel_presta_service_tertiaire_1 = require("../../conventions/2098_personnel_presta_service_tertiaire");
|
|
17
|
+
var salary_1 = require("../../conventions/2596_coiffure/salary");
|
|
17
18
|
var _3239_particuliers_employeurs_domicile_1 = require("../../conventions/3239_particuliers_employeurs_domicile");
|
|
18
19
|
var __1 = require("..");
|
|
19
20
|
var ReferenceSalaryFactory = /** @class */ (function () {
|
|
@@ -39,6 +40,8 @@ var ReferenceSalaryFactory = /** @class */ (function () {
|
|
|
39
40
|
return new _573_commerces_de_gros_1.ReferenceSalary573();
|
|
40
41
|
case __1.SupportedCcIndemniteLicenciement.IDCC0029:
|
|
41
42
|
return new _29_hospitalisation_privee_but_non_lucratif_1.ReferenceSalary0029();
|
|
43
|
+
case __1.SupportedCcIndemniteLicenciement.IDCC2596:
|
|
44
|
+
return new salary_1.ReferenceSalary2596();
|
|
42
45
|
case __1.SupportedCcIndemniteLicenciement.IDCC2098:
|
|
43
46
|
return new _2098_personnel_presta_service_tertiaire_1.ReferenceSalary2098();
|
|
44
47
|
case __1.SupportedCcIndemniteLicenciement.IDCC2609:
|
|
@@ -8,7 +8,6 @@ export declare enum MotifKeys {
|
|
|
8
8
|
congesSansSolde = "absenceCongesSansSolde",
|
|
9
9
|
greve = "absenceGreve",
|
|
10
10
|
miseAPied = "absenceMiseAPied",
|
|
11
|
-
congesPaternite = "absenceCongesPaternite",
|
|
12
11
|
convenancePro = "absenceConvenancePro",
|
|
13
12
|
absenceInjustifiée = "absenceInjustifiee",
|
|
14
13
|
congeEnfantMalade = "absenceCongesEnfantMalade"
|
|
@@ -12,7 +12,6 @@ var MotifKeys;
|
|
|
12
12
|
MotifKeys["congesSansSolde"] = "absenceCongesSansSolde";
|
|
13
13
|
MotifKeys["greve"] = "absenceGreve";
|
|
14
14
|
MotifKeys["miseAPied"] = "absenceMiseAPied";
|
|
15
|
-
MotifKeys["congesPaternite"] = "absenceCongesPaternite";
|
|
16
15
|
MotifKeys["convenancePro"] = "absenceConvenancePro";
|
|
17
16
|
MotifKeys["absenceInjustifi\u00E9e"] = "absenceInjustifiee";
|
|
18
17
|
MotifKeys["congeEnfantMalade"] = "absenceCongesEnfantMalade";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSupportedAgreement = exports.INDEMNITE_LICENCIEMENT_PRODUCTION_READY_CC = exports.SupportedCcIndemniteLicenciement = void 0;
|
|
4
|
+
/* eslint @typescript-eslint/naming-convention: 0 */
|
|
4
5
|
var SupportedCcIndemniteLicenciement;
|
|
5
6
|
(function (SupportedCcIndemniteLicenciement) {
|
|
6
7
|
SupportedCcIndemniteLicenciement["IDCC1505"] = "1505";
|
|
@@ -29,6 +30,7 @@ var SupportedCcIndemniteLicenciement;
|
|
|
29
30
|
SupportedCcIndemniteLicenciement["IDCC0044"] = "44";
|
|
30
31
|
SupportedCcIndemniteLicenciement["IDCC1517"] = "1517";
|
|
31
32
|
SupportedCcIndemniteLicenciement["IDCC2098"] = "2098";
|
|
33
|
+
SupportedCcIndemniteLicenciement["IDCC2596"] = "2596";
|
|
32
34
|
SupportedCcIndemniteLicenciement["IDCC2609"] = "2609";
|
|
33
35
|
SupportedCcIndemniteLicenciement["IDCC0675"] = "675";
|
|
34
36
|
SupportedCcIndemniteLicenciement["IDCC1501"] = "1501";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LegalReferenceSalaryProps } from "../../base";
|
|
2
|
-
import type { CC16ReferenceSalaryProps, CC29ReferenceSalaryProps, CC44ReferenceSalaryProps, CC573ReferenceSalaryProps, CC675ReferenceSalaryProps, CC1486ReferenceSalaryProps, CC1516ReferenceSalaryProps, CC1527ReferenceSalaryProps, CC2098ReferenceSalaryProps, CC2609ReferenceSalaryProps, CC2614ReferenceSalaryProps, CC3239ReferenceSalaryProps } from "../../conventions";
|
|
2
|
+
import type { CC16ReferenceSalaryProps, CC29ReferenceSalaryProps, CC44ReferenceSalaryProps, CC573ReferenceSalaryProps, CC675ReferenceSalaryProps, CC1486ReferenceSalaryProps, CC1516ReferenceSalaryProps, CC1527ReferenceSalaryProps, CC2098ReferenceSalaryProps, CC2596ReferenceSalaryProps, CC2609ReferenceSalaryProps, CC2614ReferenceSalaryProps, CC3239ReferenceSalaryProps } from "../../conventions";
|
|
3
3
|
import type { SupportedCcIndemniteLicenciement } from "..";
|
|
4
4
|
export type SalaryPeriods = {
|
|
5
5
|
month: string;
|
|
@@ -10,4 +10,4 @@ export interface IReferenceSalary<T extends SupportedCcIndemniteLicenciement> {
|
|
|
10
10
|
computeReferenceSalary: (args: ReferenceSalaryProps<T>) => number;
|
|
11
11
|
computeExtraInfo?: (args: ReferenceSalaryProps<T>) => Record<string, number | string>;
|
|
12
12
|
}
|
|
13
|
-
export type ReferenceSalaryProps<T> = T extends SupportedCcIndemniteLicenciement.
|
|
13
|
+
export type ReferenceSalaryProps<T> = T extends SupportedCcIndemniteLicenciement.IDCC0016 ? CC16ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0029 ? CC29ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0044 ? CC44ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0573 ? CC573ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1486 ? CC1486ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1516 ? CC1516ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1527 ? CC1527ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2098 ? CC2098ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2596 ? CC2596ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2609 ? CC2609ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2614 ? CC2614ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC3239 ? CC3239ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0675 ? CC675ReferenceSalaryProps : LegalReferenceSalaryProps;
|
|
@@ -2,7 +2,7 @@ import type { RuleNode } from "publicodes";
|
|
|
2
2
|
import type Engine from "publicodes";
|
|
3
3
|
export type Notification = {
|
|
4
4
|
dottedName: RuleNode["dottedName"];
|
|
5
|
-
description: RuleNode["rawNode"]["description"];
|
|
5
|
+
description: JSX.Element | RuleNode["rawNode"]["description"];
|
|
6
6
|
};
|
|
7
7
|
export type OptionsGetElement = {
|
|
8
8
|
specificRule?: string;
|
package/bin/modeles/conventions/1090_automobiles/__tests__/indemnite-licenciement/anciennete.spec.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
var common_1 = require("../../../../common");
|
|
8
8
|
describe("CC 1090", function () {
|
|
9
9
|
describe("Calcul de l'ancienneté", function () {
|
|
10
|
-
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { key: common_1.MotifKeys.maladieNonPro } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }, { motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/01/2021", "20/02/2021", 0.041666666666666664, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 8, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 7, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42 - 3 / 12, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 3, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 3, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 2, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 7, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 9, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42 - 4 / 12, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 3, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 3, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 2, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42)("$#) Calcul de l'ancienneté avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
10
|
+
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { key: common_1.MotifKeys.maladieNonPro } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }], "20/01/2021", "20/02/2021", 0.041666666666666664, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducationTempsPlein } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 8, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 7, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42 - 3 / 12, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 3, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 3, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 2, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 7, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 9, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42 - 4 / 12, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 3, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 3, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 2, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42)("$#) Calcul de l'ancienneté avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
11
11
|
var absences = _a.absences, entryDate = _a.entryDate, exitDate = _a.exitDate, expectedAnciennete = _a.expectedAnciennete;
|
|
12
12
|
var seniority = new common_1.SeniorityFactory().create(common_1.SupportedCcIndemniteLicenciement.IDCC1090);
|
|
13
13
|
var result = seniority.computeSeniority({
|
|
@@ -75,5 +75,4 @@ var MOTIFS_1090 = [
|
|
|
75
75
|
{ key: motif_keys_1.MotifKeys.congesSansSolde, label: "Congés sans solde", value: 0 },
|
|
76
76
|
{ key: motif_keys_1.MotifKeys.greve, label: "Grève", value: 0 },
|
|
77
77
|
{ key: motif_keys_1.MotifKeys.miseAPied, label: "Mise à pied", value: 0 },
|
|
78
|
-
{ key: motif_keys_1.MotifKeys.congesPaternite, label: "Congé de paternité", value: 0 },
|
|
79
78
|
];
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
var common_1 = require("../../../../common");
|
|
8
8
|
describe("CC 1351", function () {
|
|
9
9
|
describe("Calcul de l'ancienneté", function () {
|
|
10
|
-
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences
|
|
10
|
+
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { key: common_1.MotifKeys.maladieNonPro } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducation } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: "1", motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666)("Calcul de l'ancienneté avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
11
11
|
var absences = _a.absences, entryDate = _a.entryDate, exitDate = _a.exitDate, expectedAnciennete = _a.expectedAnciennete;
|
|
12
12
|
var seniority = new common_1.SeniorityFactory().create(common_1.SupportedCcIndemniteLicenciement.IDCC1351);
|
|
13
13
|
var result = seniority.computeSeniority({
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
var common_1 = require("../../../../common");
|
|
8
8
|
describe("CC 1486", function () {
|
|
9
9
|
describe("Calcul de l'ancienneté", function () {
|
|
10
|
-
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 0.4583333333333333, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 4, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 5, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 7, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesPaternite } }], "20/02/2020", "20/02/2021", 1 - 1 / 12, [{ durationInMonth: 8, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 7, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42 - 3 / 12, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 3, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 3, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 2, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 7, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 9, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42 - 4 / 12, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 3, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 3, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 2, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }], "01/01/2022", "01/02/2023", 1)("$#) Calcul de l'ancienneté avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
10
|
+
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 1, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.5416666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 4, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 5, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 7, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1 - 1 / 12, [{ durationInMonth: 8, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 7, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42 - 3 / 12, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 3, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 3, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 2, motif: { key: common_1.MotifKeys.maladieNonPro } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 7, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 9, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42 - 4 / 12, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 3, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 3, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 2, motif: { key: common_1.MotifKeys.accidentTrajet } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }], "01/01/2022", "01/02/2023", 1)("$#) Calcul de l'ancienneté avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
11
11
|
var absences = _a.absences, entryDate = _a.entryDate, exitDate = _a.exitDate, expectedAnciennete = _a.expectedAnciennete;
|
|
12
12
|
var seniority = new common_1.SeniorityFactory().create(common_1.SupportedCcIndemniteLicenciement.IDCC1486);
|
|
13
13
|
var result = seniority.computeSeniority({
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
var common_1 = require("../../../../common");
|
|
8
8
|
describe("CC 1518", function () {
|
|
9
9
|
describe("Calcul de l'ancienneté", function () {
|
|
10
|
-
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences
|
|
10
|
+
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "01/01/2020", "01/01/2021", 1, [{ motif: { key: common_1.MotifKeys.maladieNonPro } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducation } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }], "20/03/2020", "20/03/2021", 1, [{ durationInMonth: "1", motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.miseAPied } }], "01/02/2020", "01/02/2022", 1.4166666666666667, [{ durationInMonth: "2", motif: { key: common_1.MotifKeys.congesParentalEducation } }], "20/02/2020", "20/02/2021", 1)("Calcul de l'ancienneté avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
|
|
11
11
|
var absences = _a.absences, entryDate = _a.entryDate, exitDate = _a.exitDate, expectedAnciennete = _a.expectedAnciennete;
|
|
12
12
|
var seniority = new common_1.SeniorityFactory().create(common_1.SupportedCcIndemniteLicenciement.IDCC1518);
|
|
13
13
|
var result = seniority.computeSeniority({
|