@socialgouv/modeles-social 4.95.0 → 4.97.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 +19 -0
- package/bin/modeles/base/__tests__/indemnite-licenciement/anciennete.spec.js +2 -2
- package/bin/modeles/common/factory/salary.js +5 -0
- package/bin/modeles/common/factory/seniority.js +6 -4
- package/bin/modeles/common/seniority.js +2 -2
- package/bin/modeles/common/supported-agreements.d.ts +4 -0
- package/bin/modeles/common/supported-agreements.js +4 -0
- package/bin/modeles/common/types/salary.d.ts +2 -3
- package/bin/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/bin/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/formule.spec.js +41 -0
- package/bin/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/bin/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/indemnite.spec.js +43 -0
- package/bin/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/bin/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/references.spec.js +30 -0
- package/bin/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/1486_bureaux_etudes_techniques/seniority.js +2 -2
- 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 +1 -1
- 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 +4 -2
- package/bin/modeles/conventions/2511_sport/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.d.ts +1 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.js +22 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/formule.spec.js +24 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/indemnite.spec.js +27 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/references.spec.js +38 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
- package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/salaire-ref.spec.js +30 -0
- package/bin/modeles/conventions/2614_travaux_publics/index.d.ts +2 -0
- package/bin/modeles/conventions/2614_travaux_publics/index.js +18 -0
- package/bin/modeles/conventions/2614_travaux_publics/salary.d.ts +19 -0
- package/bin/modeles/conventions/2614_travaux_publics/salary.js +32 -0
- package/bin/modeles/conventions/2614_travaux_publics/seniority.d.ts +5 -0
- package/bin/modeles/conventions/2614_travaux_publics/seniority.js +49 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/anciennete.spec.d.ts +1 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/anciennete.spec.js +22 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/formule.spec.js +225 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/indemnite.spec.js +44 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/references.spec.js +62 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/index.d.ts +1 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/index.js +17 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/seniority.d.ts +7 -0
- package/bin/modeles/conventions/275_transport_aerien_personnel_au_sol/seniority.js +61 -0
- package/bin/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/anciennete.spec.js +9 -11
- package/bin/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/formule.spec.js +1 -1
- package/bin/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/indemnite.spec.js +13 -15
- package/bin/modeles/conventions/413_handicap/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/bin/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/anciennete.spec.js +5 -2
- package/bin/modeles/conventions/44_industries_chimiques/seniority.js +4 -2
- package/bin/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/bin/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/formule.spec.js +25 -0
- package/bin/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/bin/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/indemnite.spec.js +24 -0
- package/bin/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/bin/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/references.spec.js +37 -0
- package/bin/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
- package/bin/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/salaire-ref.spec.js +18 -0
- package/bin/modeles/conventions/86_publicite_francaise/index.d.ts +1 -0
- package/bin/modeles/conventions/86_publicite_francaise/index.js +17 -0
- package/bin/modeles/conventions/86_publicite_francaise/salary.d.ts +8 -0
- package/bin/modeles/conventions/86_publicite_francaise/salary.js +21 -0
- package/bin/modeles/conventions/index.d.ts +5 -0
- package/bin/modeles/conventions/index.js +5 -0
- package/lib/modeles/base/__tests__/indemnite-licenciement/anciennete.spec.js +2 -2
- package/lib/modeles/common/factory/salary.js +5 -0
- package/lib/modeles/common/factory/seniority.js +6 -4
- package/lib/modeles/common/seniority.js +2 -2
- package/lib/modeles/common/supported-agreements.d.ts +4 -0
- package/lib/modeles/common/supported-agreements.js +4 -0
- package/lib/modeles/common/types/salary.d.ts +2 -3
- package/lib/modeles/common/utils/ccn-supported.json +4 -4
- package/lib/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/lib/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/formule.spec.js +41 -0
- package/lib/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/lib/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/indemnite.spec.js +43 -0
- package/lib/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/lib/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/references.spec.js +30 -0
- package/lib/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/1486_bureaux_etudes_techniques/seniority.js +2 -2
- 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 +1 -1
- 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 +4 -2
- package/lib/modeles/conventions/2511_sport/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.d.ts +1 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.js +22 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/formule.spec.js +24 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/indemnite.spec.js +27 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/references.spec.js +38 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
- package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/salaire-ref.spec.js +30 -0
- package/lib/modeles/conventions/2614_travaux_publics/index.d.ts +2 -0
- package/lib/modeles/conventions/2614_travaux_publics/index.js +18 -0
- package/lib/modeles/conventions/2614_travaux_publics/salary.d.ts +19 -0
- package/lib/modeles/conventions/2614_travaux_publics/salary.js +32 -0
- package/lib/modeles/conventions/2614_travaux_publics/seniority.d.ts +5 -0
- package/lib/modeles/conventions/2614_travaux_publics/seniority.js +49 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/anciennete.spec.d.ts +1 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/anciennete.spec.js +22 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/formule.spec.js +225 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/indemnite.spec.js +44 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/references.spec.js +62 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/index.d.ts +1 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/index.js +17 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/seniority.d.ts +7 -0
- package/lib/modeles/conventions/275_transport_aerien_personnel_au_sol/seniority.js +61 -0
- package/lib/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/anciennete.spec.js +9 -11
- package/lib/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/formule.spec.js +1 -1
- package/lib/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/indemnite.spec.js +13 -15
- package/lib/modeles/conventions/413_handicap/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
- package/lib/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/anciennete.spec.js +5 -2
- package/lib/modeles/conventions/44_industries_chimiques/seniority.js +4 -2
- package/lib/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
- package/lib/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/formule.spec.js +25 -0
- package/lib/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
- package/lib/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/indemnite.spec.js +24 -0
- package/lib/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
- package/lib/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/references.spec.js +37 -0
- package/lib/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
- package/lib/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/salaire-ref.spec.js +18 -0
- package/lib/modeles/conventions/86_publicite_francaise/index.d.ts +1 -0
- package/lib/modeles/conventions/86_publicite_francaise/index.js +17 -0
- package/lib/modeles/conventions/86_publicite_francaise/salary.d.ts +8 -0
- package/lib/modeles/conventions/86_publicite_francaise/salary.js +21 -0
- package/lib/modeles/conventions/index.d.ts +5 -0
- package/lib/modeles/conventions/index.js +5 -0
- package/lib/modeles/modeles-indemnite-licenciement.json +1316 -79
- package/package.json +2 -2
- package/src/modeles/base/__tests__/indemnite-licenciement/anciennete.spec.ts +3 -2
- package/src/modeles/common/factory/salary.ts +6 -1
- package/src/modeles/common/factory/seniority.ts +8 -2
- package/src/modeles/common/seniority.ts +12 -13
- package/src/modeles/common/supported-agreements.ts +4 -0
- package/src/modeles/common/types/salary.ts +4 -1
- package/src/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/formule.spec.ts +64 -0
- package/src/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/indemnite.spec.ts +70 -0
- package/src/modeles/conventions/1266_restauration_collectivites/__tests__/indemnite-licenciement/references.spec.ts +40 -0
- package/src/modeles/conventions/1266_restauration_collectivites/indemnite-licenciement.yaml +125 -0
- package/src/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/anciennete.spec.ts +2 -1
- package/src/modeles/conventions/1486_bureaux_etudes_techniques/seniority.ts +14 -17
- package/src/modeles/conventions/1518_education_loisirs/__tests__/indemnite-licenciement/anciennete.spec.ts +1 -1
- package/src/modeles/conventions/1527_immobilier/__tests__/indemnite-licenciement/anciennete.spec.ts +1 -0
- package/src/modeles/conventions/16_transports_routiers/__tests__/indemnite-licenciement/anciennete.spec.ts +1 -0
- package/src/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/anciennete.spec.ts +2 -1
- package/src/modeles/conventions/2216_commerces_detail_alimentation/seniority.ts +17 -18
- package/src/modeles/conventions/2511_sport/__tests__/indemnite-licenciement/anciennete.spec.ts +1 -1
- package/src/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.ts +34 -0
- package/src/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/formule.spec.ts +39 -0
- package/src/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/indemnite.spec.ts +52 -0
- package/src/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/references.spec.ts +51 -0
- package/src/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/salaire-ref.spec.ts +52 -0
- package/src/modeles/conventions/2614_travaux_publics/indemnite-licenciement.yaml +159 -0
- package/src/modeles/conventions/2614_travaux_publics/index.ts +2 -0
- package/src/modeles/conventions/2614_travaux_publics/salary.ts +39 -0
- package/src/modeles/conventions/2614_travaux_publics/seniority.ts +20 -0
- package/src/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/anciennete.spec.ts +33 -0
- package/src/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/formule.spec.ts +251 -0
- package/src/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/indemnite.spec.ts +94 -0
- package/src/modeles/conventions/275_transport_aerien_personnel_au_sol/__tests__/indemnite-licenciement/references.spec.ts +100 -0
- package/src/modeles/conventions/275_transport_aerien_personnel_au_sol/indemnite-licenciement.yaml +546 -0
- package/src/modeles/conventions/275_transport_aerien_personnel_au_sol/index.ts +1 -0
- package/src/modeles/conventions/275_transport_aerien_personnel_au_sol/seniority.ts +53 -0
- package/src/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/anciennete.spec.ts +21 -23
- package/src/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/formule.spec.ts +2 -2
- package/src/modeles/conventions/3127_entreprises_services_a_la_personne/__tests__/indemnite-licenciement/indemnite.spec.ts +27 -29
- package/src/modeles/conventions/3127_entreprises_services_a_la_personne/indemnite-licenciement.yaml +11 -17
- package/src/modeles/conventions/413_handicap/__tests__/indemnite-licenciement/anciennete.spec.ts +1 -0
- package/src/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/anciennete.spec.ts +4 -0
- package/src/modeles/conventions/44_industries_chimiques/seniority.ts +16 -17
- package/src/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/formule.spec.ts +38 -0
- package/src/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/indemnite.spec.ts +36 -0
- package/src/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/references.spec.ts +48 -0
- package/src/modeles/conventions/86_publicite_francaise/__tests__/indemnite-licenciement/salaire-ref.spec.ts +30 -0
- package/src/modeles/conventions/86_publicite_francaise/indemnite-licenciement.yaml +56 -0
- package/src/modeles/conventions/86_publicite_francaise/index.ts +1 -0
- package/src/modeles/conventions/86_publicite_francaise/salary.ts +22 -0
- package/src/modeles/conventions/index.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.97.0](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.96.0...v4.97.0) (2023-04-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- indemnite licenciement seniority with absence ([#5054](https://github.com/SocialGouv/code-du-travail-numerique/issues/5054)) ([00ea92c](https://github.com/SocialGouv/code-du-travail-numerique/commit/00ea92c2b38701cdbfbc22db178cca74af840cfd))
|
|
11
|
+
- **indemnite-licenciement:** calcul de l'indemnité pour une ancienneté supérieure à 10 ans (CC 3127) ([#5071](https://github.com/SocialGouv/code-du-travail-numerique/issues/5071)) ([67321ae](https://github.com/SocialGouv/code-du-travail-numerique/commit/67321ae6e3b154cc0c3d46ae117d54963dbd7ec6))
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- cc 275 transport aerien personnel au sol ([#5046](https://github.com/SocialGouv/code-du-travail-numerique/issues/5046)) ([7128cde](https://github.com/SocialGouv/code-du-travail-numerique/commit/7128cde9741b17687826f3c2bd39c1ee2d3e3f6a)), closes [#5008](https://github.com/SocialGouv/code-du-travail-numerique/issues/5008)
|
|
16
|
+
- **indemnite-licenciement:** ajout de la cc 2614 ([#5035](https://github.com/SocialGouv/code-du-travail-numerique/issues/5035)) ([3690f50](https://github.com/SocialGouv/code-du-travail-numerique/commit/3690f5080e3f5e40c07d4baa8b89d2b0ee2a15ef))
|
|
17
|
+
- **indemnite-licenciement:** ajout de la cc 86 ([#5073](https://github.com/SocialGouv/code-du-travail-numerique/issues/5073)) ([e020089](https://github.com/SocialGouv/code-du-travail-numerique/commit/e020089ea813d7ea36b03417a7458a882ac52269))
|
|
18
|
+
|
|
19
|
+
# [4.96.0](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.95.0...v4.96.0) (2023-03-31)
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
- **indemnite-licenciement:** ajout de la CC 1266 ([#5041](https://github.com/SocialGouv/code-du-travail-numerique/issues/5041)) ([8982ee0](https://github.com/SocialGouv/code-du-travail-numerique/commit/8982ee06b7b541de5dbdfb2c20e11318c03b6a61))
|
|
24
|
+
|
|
6
25
|
# [4.95.0](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.94.0...v4.95.0) (2023-03-31)
|
|
7
26
|
|
|
8
27
|
**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 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.29166666666666663, [{ 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 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 ", " | ", " | ", " | ", "\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) {
|
|
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.29166666666666663, [{ 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 ", " | ", " | ", " | ", "\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) {
|
|
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({
|
|
@@ -6,6 +6,7 @@ var conventions_1 = require("../../conventions");
|
|
|
6
6
|
var _16_transports_routiers_1 = require("../../conventions/16_transports_routiers");
|
|
7
7
|
var _29_hospitalisation_privee_but_non_lucratif_1 = require("../../conventions/29_hospitalisation_privee_but_non_lucratif");
|
|
8
8
|
var _44_industries_chimiques_1 = require("../../conventions/44_industries_chimiques");
|
|
9
|
+
var _86_publicite_francaise_1 = require("../../conventions/86_publicite_francaise");
|
|
9
10
|
var _413_handicap_1 = require("../../conventions/413_handicap");
|
|
10
11
|
var _573_commerces_de_gros_1 = require("../../conventions/573_commerces_de_gros");
|
|
11
12
|
var _675_habillement_commerce_succursales_1 = require("../../conventions/675_habillement_commerce_succursales");
|
|
@@ -42,8 +43,12 @@ var ReferenceSalaryFactory = /** @class */ (function () {
|
|
|
42
43
|
return new _2098_personnel_presta_service_tertiaire_1.ReferenceSalary2098();
|
|
43
44
|
case __1.SupportedCcIndemniteLicenciement.IDCC2609:
|
|
44
45
|
return new conventions_1.ReferenceSalary2609();
|
|
46
|
+
case __1.SupportedCcIndemniteLicenciement.IDCC2614:
|
|
47
|
+
return new conventions_1.ReferenceSalary2614();
|
|
45
48
|
case __1.SupportedCcIndemniteLicenciement.IDCC0675:
|
|
46
49
|
return new _675_habillement_commerce_succursales_1.ReferenceSalary675();
|
|
50
|
+
case __1.SupportedCcIndemniteLicenciement.IDCC0086:
|
|
51
|
+
return new _86_publicite_francaise_1.ReferenceSalary86();
|
|
47
52
|
case __1.SupportedCcIndemniteLicenciement.default:
|
|
48
53
|
default:
|
|
49
54
|
return new base_1.ReferenceSalaryLegal();
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SeniorityFactory = void 0;
|
|
4
4
|
var base_1 = require("../../base");
|
|
5
5
|
var conventions_1 = require("../../conventions");
|
|
6
|
-
var _1505_commerces_detail_fruits_legumes_1 = require("../../conventions/1505_commerces_detail_fruits_legumes");
|
|
7
|
-
var _1517_commerces_de_detail_non_alimentaires_1 = require("../../conventions/1517_commerces_de_detail_non_alimentaires");
|
|
8
6
|
var index_1 = require("../index");
|
|
9
7
|
var SeniorityFactory = /** @class */ (function () {
|
|
10
8
|
function SeniorityFactory() {
|
|
@@ -44,13 +42,17 @@ var SeniorityFactory = /** @class */ (function () {
|
|
|
44
42
|
case index_1.SupportedCcIndemniteLicenciement.IDCC413:
|
|
45
43
|
return new conventions_1.Seniority413();
|
|
46
44
|
case index_1.SupportedCcIndemniteLicenciement.IDCC1517:
|
|
47
|
-
return new
|
|
45
|
+
return new conventions_1.Seniority1517();
|
|
46
|
+
case index_1.SupportedCcIndemniteLicenciement.IDCC2614:
|
|
47
|
+
return new conventions_1.Seniority2614();
|
|
48
48
|
case index_1.SupportedCcIndemniteLicenciement.IDCC1505:
|
|
49
|
-
return new
|
|
49
|
+
return new conventions_1.Seniority1505();
|
|
50
50
|
case index_1.SupportedCcIndemniteLicenciement.IDCC1596:
|
|
51
51
|
return new conventions_1.Seniority1596();
|
|
52
52
|
case index_1.SupportedCcIndemniteLicenciement.IDCC1597:
|
|
53
53
|
return new conventions_1.Seniority1597();
|
|
54
|
+
case index_1.SupportedCcIndemniteLicenciement.IDCC275:
|
|
55
|
+
return new conventions_1.Seniority275();
|
|
54
56
|
case index_1.SupportedCcIndemniteLicenciement.default:
|
|
55
57
|
default:
|
|
56
58
|
return new base_1.SeniorityLegal();
|
|
@@ -26,9 +26,9 @@ var SeniorityDefault = /** @class */ (function () {
|
|
|
26
26
|
return total;
|
|
27
27
|
}
|
|
28
28
|
return total + item.durationInMonth * m.value;
|
|
29
|
-
}, 0)
|
|
29
|
+
}, 0);
|
|
30
30
|
return {
|
|
31
|
-
value: (0, date_fns_1.differenceInMonths)(dSortie, dEntree) / 12
|
|
31
|
+
value: ((0, date_fns_1.differenceInMonths)(dSortie, dEntree) - totalAbsence) / 12,
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
return SeniorityDefault;
|
|
@@ -32,6 +32,10 @@ export declare enum SupportedCcIndemniteLicenciement {
|
|
|
32
32
|
IDCC787 = "787",
|
|
33
33
|
IDCC843 = "843",
|
|
34
34
|
IDCC1147 = "1147",
|
|
35
|
+
IDCC2614 = "2614",
|
|
36
|
+
IDCC1266 = "1266",
|
|
37
|
+
IDCC275 = "275",
|
|
38
|
+
IDCC0086 = "86",
|
|
35
39
|
default = "default"
|
|
36
40
|
}
|
|
37
41
|
export declare const INDEMNITE_LICENCIEMENT_PRODUCTION_READY_CC: number[];
|
|
@@ -36,6 +36,10 @@ var SupportedCcIndemniteLicenciement;
|
|
|
36
36
|
SupportedCcIndemniteLicenciement["IDCC787"] = "787";
|
|
37
37
|
SupportedCcIndemniteLicenciement["IDCC843"] = "843";
|
|
38
38
|
SupportedCcIndemniteLicenciement["IDCC1147"] = "1147";
|
|
39
|
+
SupportedCcIndemniteLicenciement["IDCC2614"] = "2614";
|
|
40
|
+
SupportedCcIndemniteLicenciement["IDCC1266"] = "1266";
|
|
41
|
+
SupportedCcIndemniteLicenciement["IDCC275"] = "275";
|
|
42
|
+
SupportedCcIndemniteLicenciement["IDCC0086"] = "86";
|
|
39
43
|
SupportedCcIndemniteLicenciement["default"] = "default";
|
|
40
44
|
})(SupportedCcIndemniteLicenciement = exports.SupportedCcIndemniteLicenciement || (exports.SupportedCcIndemniteLicenciement = {}));
|
|
41
45
|
exports.INDEMNITE_LICENCIEMENT_PRODUCTION_READY_CC = [
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { LegalReferenceSalaryProps } from "../../base";
|
|
2
|
-
import type { CC16ReferenceSalaryProps, CC29ReferenceSalaryProps, CC44ReferenceSalaryProps, CC573ReferenceSalaryProps, CC1486ReferenceSalaryProps, CC1516ReferenceSalaryProps, CC1527ReferenceSalaryProps, CC2098ReferenceSalaryProps, CC2609ReferenceSalaryProps, CC3239ReferenceSalaryProps } from "../../conventions";
|
|
3
|
-
import type { CC675ReferenceSalaryProps } from "../../conventions/675_habillement_commerce_succursales";
|
|
2
|
+
import type { CC16ReferenceSalaryProps, CC29ReferenceSalaryProps, CC44ReferenceSalaryProps, CC573ReferenceSalaryProps, CC675ReferenceSalaryProps, CC1486ReferenceSalaryProps, CC1516ReferenceSalaryProps, CC1527ReferenceSalaryProps, CC2098ReferenceSalaryProps, CC2609ReferenceSalaryProps, CC2614ReferenceSalaryProps, CC3239ReferenceSalaryProps } from "../../conventions";
|
|
4
3
|
import type { SupportedCcIndemniteLicenciement } from "..";
|
|
5
4
|
export type SalaryPeriods = {
|
|
6
5
|
month: string;
|
|
@@ -11,4 +10,4 @@ export interface IReferenceSalary<T extends SupportedCcIndemniteLicenciement> {
|
|
|
11
10
|
computeReferenceSalary: (args: ReferenceSalaryProps<T>) => number;
|
|
12
11
|
computeExtraInfo?: (args: ReferenceSalaryProps<T>) => Record<string, number | string>;
|
|
13
12
|
}
|
|
14
|
-
export type ReferenceSalaryProps<T> = T extends SupportedCcIndemniteLicenciement.IDCC1516 ? CC1516ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1486 ? CC1486ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1527 ? CC1527ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC3239 ? CC3239ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0016 ? CC16ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0044 ? CC44ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0573 ? CC573ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0029 ? CC29ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2098 ? CC2098ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2609 ? CC2609ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0675 ? CC675ReferenceSalaryProps : LegalReferenceSalaryProps;
|
|
13
|
+
export type ReferenceSalaryProps<T> = T extends SupportedCcIndemniteLicenciement.IDCC1516 ? CC1516ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1486 ? CC1486ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1527 ? CC1527ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC3239 ? CC3239ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0016 ? CC16ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0044 ? CC44ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0573 ? CC573ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0029 ? CC29ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2098 ? CC2098ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2609 ? CC2609ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2614 ? CC2614ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0675 ? CC675ReferenceSalaryProps : LegalReferenceSalaryProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var publicodes_1 = require("../../../../../publicodes");
|
|
8
|
+
var engine = new publicodes_1.IndemniteLicenciementPublicodes(modelsIndemniteLicenciement, "1266");
|
|
9
|
+
describe("Formule indemnité licenciement - CC 1266", function () {
|
|
10
|
+
describe("Formule pour un non cadre", function () {
|
|
11
|
+
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n seniority | expectedFormula | expectedExplanations\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n seniority | expectedFormula | expectedExplanations\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), 11 / 12, "", [], 1, "(1/5 * Sref * A1)", ["A1 : Ancienneté totale (1 an)", "Sref : Salaire de référence (1000 €)"], 19, "(1/5 * Sref * A1) + (2/15 * Sref * A2)", ["A1 : Ancienneté totale (19 ans)", "A2 : Années d'ancienneté au delà de 10 ans (9 ans)", "Sref : Salaire de référence (1000 €)"])("Formule $expectedFormula avec $seniority ans", function (_a) {
|
|
12
|
+
var seniority = _a.seniority, expectedFormula = _a.expectedFormula, expectedExplanations = _a.expectedExplanations;
|
|
13
|
+
engine.setSituation({
|
|
14
|
+
"contrat salarié . convention collective": "'IDCC1266'",
|
|
15
|
+
"contrat salarié . convention collective . restauration collectivités . catégorie professionnelle": "'Non-Cadres'",
|
|
16
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
|
|
17
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniority,
|
|
18
|
+
"contrat salarié . indemnité de licenciement . salaire de référence conventionnel": "1000",
|
|
19
|
+
});
|
|
20
|
+
var result = engine.getFormule();
|
|
21
|
+
expect(result.formula).toEqual(expectedFormula);
|
|
22
|
+
expect(result.explanations).toEqual(expectedExplanations);
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
describe("Formule pour un cadre", function () {
|
|
26
|
+
test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n seniority | expectedFormula | expectedExplanations\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n seniority | expectedFormula | expectedExplanations\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), 11 / 12, "", [], 1, "(1/5 * Sref * A1)", ["A1 : Ancienneté totale (1 an)", "Sref : Salaire de référence (1000 €)"], 6, "(1/5 * Sref * A1) + (1/15 * Sref * A2)", ["A1 : Ancienneté totale (6 ans)", "A2 : Années d'ancienneté au dessus de 5 ans jusqu'à 10 ans (1 an)", "Sref : Salaire de référence (1000 €)"], 11, "(1/5 * Sref * A1) + (1/15 * Sref * A2) + (2/15 * Sref * A3)", ["A1 : Ancienneté totale (11 ans)", "A2 : Années d'ancienneté au dessus de 5 ans jusqu'à 10 ans (5 ans)", "A3 : Années d'ancienneté au dessus de 10 ans jusqu'à 15 ans (1 an)", "Sref : Salaire de référence (1000 €)"], 18, "(1/5 * Sref * A1) + (1/15 * Sref * A2) + (2/15 * Sref * A3) + (3/15 * Sref * A4)", ["A1 : Ancienneté totale (18 ans)", "A2 : Années d'ancienneté au dessus de 5 ans jusqu'à 10 ans (5 ans)", "A3 : Années d'ancienneté au dessus de 10 ans jusqu'à 15 ans (5 ans)", "A4 : Années d'ancienneté au delà de 15 ans (3 ans)", "Sref : Salaire de référence (1000 €)"])("Formule $expectedFormula avec $seniority ans", function (_a) {
|
|
27
|
+
var seniority = _a.seniority, expectedFormula = _a.expectedFormula, expectedExplanations = _a.expectedExplanations;
|
|
28
|
+
engine.setSituation({
|
|
29
|
+
"contrat salarié . convention collective": "'IDCC1266'",
|
|
30
|
+
"contrat salarié . convention collective . restauration collectivités . catégorie professionnelle": "'Cadres'",
|
|
31
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
|
|
32
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniority,
|
|
33
|
+
"contrat salarié . indemnité de licenciement . salaire de référence conventionnel": "1000",
|
|
34
|
+
});
|
|
35
|
+
var result = engine.getFormule();
|
|
36
|
+
expect(result.formula).toEqual(expectedFormula);
|
|
37
|
+
expect(result.explanations).toEqual(expectedExplanations);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var publicodes_1 = require("../../../../../publicodes");
|
|
8
|
+
var engine = new publicodes_1.IndemniteLicenciementPublicodes(modelsIndemniteLicenciement, "1266");
|
|
9
|
+
describe("Calcul de l'indemnité de licenciement - CC 1266", function () {
|
|
10
|
+
describe("Calcul pour un non cadre", function () {
|
|
11
|
+
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n seniorityRight | seniority | salaireRef | expectedCompensation\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n seniorityRight | seniority | salaireRef | expectedCompensation\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), 11 / 12, 1, 2500, 0, 1, 1, 2500, 500, 1, 19, 2500, 12500)("Avec une ancienneté $seniority ans, un salaire de référence $salaireRef € => une compensation de base de $expectedCompensation €", function (_a) {
|
|
12
|
+
var _b;
|
|
13
|
+
var salaireRef = _a.salaireRef, expectedCompensation = _a.expectedCompensation, seniority = _a.seniority, seniorityRight = _a.seniorityRight;
|
|
14
|
+
var _c = engine.setSituation({
|
|
15
|
+
"contrat salarié . convention collective": "'IDCC1266'",
|
|
16
|
+
"contrat salarié . convention collective . restauration collectivités . catégorie professionnelle": "'Non-Cadres'",
|
|
17
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
|
|
18
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
|
|
19
|
+
"contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salaireRef,
|
|
20
|
+
}, "contrat salarié . indemnité de licenciement . résultat conventionnel"), result = _c.result, missingArgs = _c.missingArgs;
|
|
21
|
+
expect((_b = result.unit) === null || _b === void 0 ? void 0 : _b.numerators).toEqual(["€"]);
|
|
22
|
+
expect(missingArgs).toEqual([]);
|
|
23
|
+
expect(result.value).toEqual(expectedCompensation);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
describe("Calcul pour un cadre", function () {
|
|
27
|
+
test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n seniorityRight | seniority | salaireRef | expectedCompensation\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n seniorityRight | seniority | salaireRef | expectedCompensation\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), 11 / 12, 1, 3500, 0, 1, 1, 3500, 700, 1, 6, 3500, 4433.33, 1, 11, 3500, 9333.33, 1, 18, 3500, 18200)("Avec une ancienneté $seniority ans, un salaire de référence $salaireRef € => une compensation de base de $expectedCompensation €", function (_a) {
|
|
28
|
+
var _b;
|
|
29
|
+
var salaireRef = _a.salaireRef, expectedCompensation = _a.expectedCompensation, seniority = _a.seniority, seniorityRight = _a.seniorityRight;
|
|
30
|
+
var _c = engine.setSituation({
|
|
31
|
+
"contrat salarié . convention collective": "'IDCC1266'",
|
|
32
|
+
"contrat salarié . convention collective . restauration collectivités . catégorie professionnelle": "'Cadres'",
|
|
33
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
|
|
34
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
|
|
35
|
+
"contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salaireRef,
|
|
36
|
+
}, "contrat salarié . indemnité de licenciement . résultat conventionnel"), result = _c.result, missingArgs = _c.missingArgs;
|
|
37
|
+
expect((_b = result.unit) === null || _b === void 0 ? void 0 : _b.numerators).toEqual(["€"]);
|
|
38
|
+
expect(missingArgs).toEqual([]);
|
|
39
|
+
expect(result.value).toEqual(expectedCompensation);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var publicodes_1 = require("../../../../../publicodes");
|
|
8
|
+
var engine = new publicodes_1.IndemniteLicenciementPublicodes(modelsIndemniteLicenciement, "1266");
|
|
9
|
+
var References = [
|
|
10
|
+
{
|
|
11
|
+
article: "Article 14",
|
|
12
|
+
url: "https://www.legifrance.gouv.fr/conv_coll/article/KALIARTI000021822343?idConteneur=KALICONT000005635418",
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
describe("Vérification des références juridiques pour la CC 1266", function () {
|
|
16
|
+
test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n seniority | category | expectedReferences\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n seniority | category | expectedReferences\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), 5, "Non-Cadres", References, 5, "Cadres", References)("pour un employé avec une ancienneté de $seniority mois", function (_a) {
|
|
17
|
+
var seniority = _a.seniority, category = _a.category, expectedReferences = _a.expectedReferences;
|
|
18
|
+
engine.setSituation({
|
|
19
|
+
"contrat salarié . convention collective": "'IDCC1266'",
|
|
20
|
+
"contrat salarié . convention collective . restauration collectivités . catégorie professionnelle": "'".concat(category, "'"),
|
|
21
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
|
|
22
|
+
"contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniority,
|
|
23
|
+
"contrat salarié . indemnité de licenciement . salaire de référence conventionnel": "1000",
|
|
24
|
+
});
|
|
25
|
+
var result = engine.getReferences("résultat conventionnel");
|
|
26
|
+
expect(result).toHaveLength(expectedReferences.length);
|
|
27
|
+
expect(result).toEqual(expect.arrayContaining(expectedReferences));
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
var templateObject_1;
|
|
@@ -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 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 } }, { 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.45833333333333337, [{ 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)("$#) 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 "], ["\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) {
|
|
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({
|
|
@@ -32,9 +32,9 @@ var Seniority1486 = /** @class */ (function () {
|
|
|
32
32
|
return total + Math.max(item.durationInMonth - 6, 0);
|
|
33
33
|
}
|
|
34
34
|
return total + item.durationInMonth * m.value;
|
|
35
|
-
}, 0)
|
|
35
|
+
}, 0);
|
|
36
36
|
return {
|
|
37
|
-
value: (0, date_fns_1.differenceInMonths)(dSortie, dEntree) / 12
|
|
37
|
+
value: ((0, date_fns_1.differenceInMonths)(dSortie, dEntree) - totalAbsence) / 12,
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
return Seniority1486;
|