@socialgouv/modeles-social 4.106.0 → 4.108.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/bin/modeles/common/utils/notifications.js +2 -2
  3. package/bin/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/formule.spec.js +1 -0
  4. package/bin/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/indemnite.spec.js +45 -22
  5. package/bin/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/notification.spec.js +55 -15
  6. package/bin/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/references.spec.js +1 -0
  7. package/bin/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
  8. package/bin/modeles/conventions/2216_commerces_detail_alimentation/seniority.js +32 -5
  9. package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
  10. package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/notifications.spec.d.ts +1 -0
  11. package/bin/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/notifications.spec.js +36 -0
  12. package/bin/modeles/conventions/2614_travaux_publics/seniority.js +2 -1
  13. package/bin/publicodes/PublicodesBase.js +12 -4
  14. package/bin/publicodes/types.d.ts +1 -1
  15. package/bin/simulators/preavis-demission/preavis-demission.data.json +3 -3
  16. package/lib/modeles/common/utils/notifications.js +2 -2
  17. package/lib/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/formule.spec.js +1 -0
  18. package/lib/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/indemnite.spec.js +45 -22
  19. package/lib/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/notification.spec.js +55 -15
  20. package/lib/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/references.spec.js +1 -0
  21. package/lib/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
  22. package/lib/modeles/conventions/2216_commerces_detail_alimentation/seniority.js +32 -5
  23. package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.js +1 -1
  24. package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/notifications.spec.d.ts +1 -0
  25. package/lib/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/notifications.spec.js +36 -0
  26. package/lib/modeles/conventions/2614_travaux_publics/seniority.js +2 -1
  27. package/lib/modeles/modeles-indemnite-licenciement.json +35 -6
  28. package/lib/publicodes/PublicodesBase.js +12 -4
  29. package/lib/publicodes/types.d.ts +1 -1
  30. package/lib/simulators/preavis-demission/preavis-demission.data.json +3 -3
  31. package/package.json +2 -2
  32. package/src/modeles/common/utils/notifications.ts +2 -2
  33. package/src/modeles/conventions/1702_ouvriers_travaux_public/indemnite-licenciement.yaml +0 -1
  34. package/src/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/formule.spec.ts +2 -0
  35. package/src/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/indemnite.spec.ts +124 -64
  36. package/src/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/notification.spec.ts +63 -21
  37. package/src/modeles/conventions/2120_banque/__tests__/indemnite-licenciement/references.spec.ts +2 -1
  38. package/src/modeles/conventions/2120_banque/indemnite-licenciement.yaml +21 -6
  39. package/src/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/anciennete.spec.ts +22 -21
  40. package/src/modeles/conventions/2216_commerces_detail_alimentation/seniority.ts +64 -11
  41. package/src/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/anciennete.spec.ts +11 -7
  42. package/src/modeles/conventions/2614_travaux_publics/__tests__/indemnite-licenciement/notifications.spec.ts +63 -0
  43. package/src/modeles/conventions/2614_travaux_publics/indemnite-licenciement.yaml +7 -0
  44. package/src/modeles/conventions/2614_travaux_publics/seniority.ts +4 -1
  45. package/src/publicodes/PublicodesBase.ts +17 -5
  46. package/src/publicodes/types.ts +1 -0
  47. package/src/simulators/preavis-demission/preavis-demission.data.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
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.108.0](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.107.0...v4.108.0) (2023-09-11)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **indemnite-licenciement:** retours sur la cc 2216 ([#5356](https://github.com/SocialGouv/code-du-travail-numerique/issues/5356)) ([4687586](https://github.com/SocialGouv/code-du-travail-numerique/commit/46875866aa63c57ee7dc80af25284e9f6824cc3f))
11
+
12
+ ### Features
13
+
14
+ - modifier le nom d'une catégorie pro CC 44 ([#5342](https://github.com/SocialGouv/code-du-travail-numerique/issues/5342)) ([e60ca0a](https://github.com/SocialGouv/code-du-travail-numerique/commit/e60ca0a5bc6ef08c9d48ba910a9fb329b47a751d))
15
+
16
+ # [4.107.0](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.106.0...v4.107.0) (2023-08-25)
17
+
18
+ ### Bug Fixes
19
+
20
+ - **errors:** sentry error on publicodes ([#5304](https://github.com/SocialGouv/code-du-travail-numerique/issues/5304)) ([0a6ae69](https://github.com/SocialGouv/code-du-travail-numerique/commit/0a6ae696d5a25bf89594bcfd9aa0035642740855))
21
+ - **indemnite-licenciement:** retour pour la cc 2120 ([#5309](https://github.com/SocialGouv/code-du-travail-numerique/issues/5309)) ([4c4725a](https://github.com/SocialGouv/code-du-travail-numerique/commit/4c4725a71af2992d471cdf049f81ddaca06e6d81))
22
+
23
+ ### Features
24
+
25
+ - Activer la CC 176 ([#5344](https://github.com/SocialGouv/code-du-travail-numerique/issues/5344)) ([81b7982](https://github.com/SocialGouv/code-du-travail-numerique/commit/81b7982d585e38a3f02711cbd6f747549dbd0c91))
26
+ - indemnite licenciement desactiver cc176 ([#5348](https://github.com/SocialGouv/code-du-travail-numerique/issues/5348)) ([a26615b](https://github.com/SocialGouv/code-du-travail-numerique/commit/a26615b06b4b8958f440276565c6202eb2974a40))
27
+
6
28
  # [4.106.0](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.105.1...v4.106.0) (2023-08-09)
7
29
 
8
30
  ### Bug Fixes
@@ -27,7 +27,7 @@ function getNotifications(engine, option) {
27
27
  return ({
28
28
  description: description,
29
29
  dottedName: dottedName,
30
- show: (_b = cdtn === null || cdtn === void 0 ? void 0 : cdtn.affichage) !== null && _b !== void 0 ? _b : "conventionnel",
30
+ show: (_b = cdtn === null || cdtn === void 0 ? void 0 : cdtn.affichage) !== null && _b !== void 0 ? _b : "default",
31
31
  });
32
32
  });
33
33
  }
@@ -58,7 +58,7 @@ function getNotificationsBloquantes(engine, option) {
58
58
  return ({
59
59
  description: description,
60
60
  dottedName: dottedName,
61
- show: (_b = cdtn === null || cdtn === void 0 ? void 0 : cdtn.affichage) !== null && _b !== void 0 ? _b : "conventionnel",
61
+ show: (_b = cdtn === null || cdtn === void 0 ? void 0 : cdtn.affichage) !== null && _b !== void 0 ? _b : "default",
62
62
  });
63
63
  });
64
64
  }
@@ -19,6 +19,7 @@ describe("Formule indemnité licenciement pour la CC 2120", function () {
19
19
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
20
20
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
21
21
  "contrat salarié . indemnité de licenciement . date d'entrée": entryDate,
22
+ "contrat salarié . indemnité de licenciement . inaptitude suite à un accident ou maladie professionnelle": "non",
22
23
  "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
23
24
  }, licenciementDisciplinaire
24
25
  ? {
@@ -8,27 +8,50 @@ var publicodes_1 = require("../../../../../publicodes");
8
8
  var common_1 = require("../../../../common");
9
9
  var engine = new publicodes_1.IndemniteLicenciementPublicodes(modelsIndemniteLicenciement, "2120");
10
10
  describe("Indemnité conventionnel de licenciement pour la CC 2120", function () {
11
- test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedCompensation\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 ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "], ["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedCompensation\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 ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "])), "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, undefined, 0, 0, 2000, 0, "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.5, 0.5, 2000, 0, "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.67, 0.67, 2000, 335, "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.67, 15, 2000, 8333.33, "01/01/1999", "Non-cadres", 1, 0, common_1.QuestionOuiNon.oui, undefined, 0.91, 0.91, 1991, 0, "01/01/1999", "Non-cadres", 2, 0, common_1.QuestionOuiNon.oui, undefined, 1, 1, 1991, 1991, "01/01/1999", "Non-cadres", 6, 34, common_1.QuestionOuiNon.oui, undefined, 1, 20, 1991, 22896.5, "01/01/1999", "Non-cadres", 6, 25, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 1991, 18416.75, "01/01/1999", "Non-cadres", 6, 19, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 1991, 15430.25, "01/01/1999", "Cadres", 1, 0, common_1.QuestionOuiNon.oui, undefined, 0.91, 0.91, 3064, 0, "01/01/1999", "Cadres", 2, 0, common_1.QuestionOuiNon.oui, undefined, 1, 1, 3064, 3064, "01/01/1999", "Cadres", 6, 34, common_1.QuestionOuiNon.oui, undefined, 1, 20, 3064, 35236, "01/01/1999", "Cadres", 6, 25, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 3064, 28342, "01/01/1999", "Cadres", 6, 19, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 3064, 23746, "01/01/2000", "Non-cadres", 0, 1, common_1.QuestionOuiNon.oui, undefined, 0.91, 0.91, 1991, 0, "01/01/2000", "Non-cadres", 2, 0, common_1.QuestionOuiNon.oui, undefined, 1, 1, 1991, 1991, "01/01/2000", "Non-cadres", 4, 36, common_1.QuestionOuiNon.oui, undefined, 1, 20, 1991, 21901, "01/01/2000", "Non-cadres", 4, 27, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 1991, 17421.25, "01/01/2000", "Non-cadres", 4, 21, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 1991, 14434.75, "01/01/1999", "Non-cadres", 0, 1, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 0.91, 0.91, 2772, 0, "01/01/1999", "Non-cadres", 2, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 1, 2772, 2485.24, "01/01/1999", "Non-cadres", 6, 34, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 20, 2772, 26305.32, "01/01/1999", "Non-cadres", 6, 25, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 15.67, 2772, 21315.72, "01/01/1999", "Non-cadres", 6, 19, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 12.5, 2772, 17989.32, "01/01/1999", "Cadres", 0, 1, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 0.91, 0.91, 2772, 0, "01/01/1999", "Cadres", 2, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 1, 2772, 2485.24, "01/01/1999", "Cadres", 6, 34, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 20, 2772, 26305.32, "01/01/1999", "Cadres", 6, 25, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 15.67, 2772, 21315.72, "01/01/1999", "Cadres", 6, 19, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 12.5, 2772, 17989.32, "01/01/1999", "Non-cadres", 1, 0, common_1.QuestionOuiNon.oui, undefined, 0.91, 0.91, 2772, 0, "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 24, 2772, 30740.52)("$#) Catégorie pro $categoriePro, entryDate $entryDate, seniorityRight: $seniorityRight an, semestresAvant2002 $semestresAvant2002, semestresApres2002 $semestresApres2002, licenciementDisciplinaire $licenciementDisciplinaire, licenciementEco $licenciementEco, salaire de référence: $salary => $expectedCompensation", function (_a) {
12
- var _b;
13
- var categoriePro = _a.categoriePro, licenciementEco = _a.licenciementEco, licenciementDisciplinaire = _a.licenciementDisciplinaire, semestresAvant2002 = _a.semestresAvant2002, semestresApres2002 = _a.semestresApres2002, seniorityRight = _a.seniorityRight, salary = _a.salary, expectedCompensation = _a.expectedCompensation, seniority = _a.seniority, entryDate = _a.entryDate;
14
- var _c = engine.setSituation(Object.assign({
15
- "contrat salarié . convention collective": "'IDCC2120'",
16
- "contrat salarié . convention collective . banque . catégorie professionnelle": "'".concat(categoriePro, "'"),
17
- "contrat salarié . convention collective . banque . licenciement économique": "'".concat(licenciementEco, "'"),
18
- "contrat salarié . convention collective . banque . semestres complets après 2002": semestresApres2002,
19
- "contrat salarié . convention collective . banque . semestres complets avant 2002": semestresAvant2002,
20
- "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
21
- "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
22
- "contrat salarié . indemnité de licenciement . date d'entrée": entryDate,
23
- "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
24
- }, licenciementDisciplinaire
25
- ? {
26
- "contrat salarié . convention collective . banque . licenciement disciplinaire": "'".concat(licenciementDisciplinaire, "'"),
27
- }
28
- : {}), "contrat salarié . indemnité de licenciement . résultat conventionnel"), result = _c.result, missingArgs = _c.missingArgs;
29
- expect(missingArgs).toEqual([]);
30
- expect(result.value).toEqual(expectedCompensation);
31
- expect((_b = result.unit) === null || _b === void 0 ? void 0 : _b.numerators).toEqual(["€"]);
11
+ describe("Sans inaptitude", function () {
12
+ test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedCompensation\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 ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "], ["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedCompensation\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 ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "])), "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, undefined, 0, 0, 2000, 0, "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.5, 0.5, 2000, 0, "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.67, 0.67, 2000, 335, "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.67, 15, 2000, 8333.33, "01/01/1999", "Non-cadres", 1, 0, common_1.QuestionOuiNon.oui, undefined, 0.91, 0.91, 1991, 0, "01/01/1999", "Non-cadres", 2, 0, common_1.QuestionOuiNon.oui, undefined, 1, 1, 1991, 1991, "01/01/1999", "Non-cadres", 6, 34, common_1.QuestionOuiNon.oui, undefined, 1, 20, 1991, 22896.5, "01/01/1999", "Non-cadres", 6, 25, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 1991, 18416.75, "01/01/1999", "Non-cadres", 6, 19, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 1991, 15430.25, "01/01/1999", "Cadres", 1, 0, common_1.QuestionOuiNon.oui, undefined, 0.91, 0.91, 3064, 0, "01/01/1999", "Cadres", 2, 0, common_1.QuestionOuiNon.oui, undefined, 1, 1, 3064, 3064, "01/01/1999", "Cadres", 6, 34, common_1.QuestionOuiNon.oui, undefined, 1, 20, 3064, 35236, "01/01/1999", "Cadres", 6, 25, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 3064, 28342, "01/01/1999", "Cadres", 6, 19, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 3064, 23746, "01/01/2000", "Non-cadres", 0, 1, common_1.QuestionOuiNon.oui, undefined, 0.91, 0.91, 1991, 0, "01/01/2000", "Non-cadres", 2, 0, common_1.QuestionOuiNon.oui, undefined, 1, 1, 1991, 1991, "01/01/2000", "Non-cadres", 4, 36, common_1.QuestionOuiNon.oui, undefined, 1, 20, 1991, 21901, "01/01/2000", "Non-cadres", 4, 27, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 1991, 17421.25, "01/01/2000", "Non-cadres", 4, 21, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 1991, 14434.75, "01/01/1999", "Non-cadres", 0, 1, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 0.91, 0.91, 2772, 0, "01/01/1999", "Non-cadres", 2, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 1, 2772, 2485.24, "01/01/1999", "Non-cadres", 6, 34, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 20, 2772, 26305.32, "01/01/1999", "Non-cadres", 6, 25, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 15.67, 2772, 21315.72, "01/01/1999", "Non-cadres", 6, 19, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 12.5, 2772, 17989.32, "01/01/1999", "Cadres", 0, 1, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 0.91, 0.91, 2772, 0, "01/01/1999", "Cadres", 2, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 1, 2772, 2485.24, "01/01/1999", "Cadres", 6, 34, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 20, 2772, 26305.32, "01/01/1999", "Cadres", 6, 25, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 15.67, 2772, 21315.72, "01/01/1999", "Cadres", 6, 19, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 12.5, 2772, 17989.32, "01/01/1999", "Non-cadres", 1, 0, common_1.QuestionOuiNon.oui, undefined, 0.91, 0.91, 2772, 0, "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 24, 2772, 30740.52, "01/01/2020", "Cadres", 0, 6, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 3, 3, 3000, 3600)("$#) Catégorie pro $categoriePro, entryDate $entryDate, seniorityRight: $seniorityRight an, semestresAvant2002 $semestresAvant2002, semestresApres2002 $semestresApres2002, licenciementDisciplinaire $licenciementDisciplinaire, licenciementEco $licenciementEco, salaire de référence: $salary => $expectedCompensation", function (_a) {
13
+ var _b;
14
+ var categoriePro = _a.categoriePro, licenciementEco = _a.licenciementEco, licenciementDisciplinaire = _a.licenciementDisciplinaire, semestresAvant2002 = _a.semestresAvant2002, semestresApres2002 = _a.semestresApres2002, seniorityRight = _a.seniorityRight, salary = _a.salary, expectedCompensation = _a.expectedCompensation, seniority = _a.seniority, entryDate = _a.entryDate;
15
+ var _c = engine.setSituation(Object.assign({
16
+ "contrat salarié . convention collective": "'IDCC2120'",
17
+ "contrat salarié . convention collective . banque . catégorie professionnelle": "'".concat(categoriePro, "'"),
18
+ "contrat salarié . convention collective . banque . licenciement économique": "'".concat(licenciementEco, "'"),
19
+ "contrat salarié . convention collective . banque . semestres complets après 2002": semestresApres2002,
20
+ "contrat salarié . convention collective . banque . semestres complets avant 2002": semestresAvant2002,
21
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
22
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
23
+ "contrat salarié . indemnité de licenciement . date d'entrée": entryDate,
24
+ "contrat salarié . indemnité de licenciement . inaptitude suite à un accident ou maladie professionnelle": "non",
25
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
26
+ }, licenciementDisciplinaire
27
+ ? {
28
+ "contrat salarié . convention collective . banque . licenciement disciplinaire": "'".concat(licenciementDisciplinaire, "'"),
29
+ }
30
+ : {}), "contrat salarié . indemnité de licenciement . résultat conventionnel"), result = _c.result, missingArgs = _c.missingArgs;
31
+ expect(missingArgs).toEqual([]);
32
+ expect(result.value).toEqual(expectedCompensation);
33
+ expect((_b = result.unit) === null || _b === void 0 ? void 0 : _b.numerators).toEqual(["€"]);
34
+ });
35
+ });
36
+ describe("Avec inaptitude", function () {
37
+ test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | seniorityRight | seniority | salary | expectedCompensation\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "], ["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | seniorityRight | seniority | salary | expectedCompensation\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "])), "01/01/1999", "Non-cadres", 0, 1, 0.91, 0.91, 2772, 0, "01/01/1999", "Non-cadres", 2, 0, 1, 1, 2772, 2485.24, "01/01/1999", "Non-cadres", 6, 34, 1, 20, 2772, 26305.32, "01/01/1999", "Non-cadres", 6, 25, 1, 15.67, 2772, 21315.72, "01/01/1999", "Non-cadres", 6, 19, 1, 12.5, 2772, 17989.32, "01/01/1999", "Cadres", 0, 1, 0.91, 0.91, 2772, 0, "01/01/1999", "Cadres", 2, 0, 1, 1, 2772, 2485.24, "01/01/1999", "Cadres", 6, 34, 1, 20, 2772, 26305.32, "01/01/1999", "Cadres", 6, 25, 1, 15.67, 2772, 21315.72, "01/01/1999", "Cadres", 6, 19, 1, 12.5, 2772, 17989.32, "01/01/1999", "Cadres", 6, 42, 1, 24, 2772, 30740.52, "01/01/2020", "Cadres", 0, 6, 3, 3, 3000, 3600)("$#) Catégorie pro $categoriePro, entryDate $entryDate, seniorityRight: $seniorityRight an, semestresAvant2002 $semestresAvant2002, semestresApres2002 $semestresApres2002, salaire de référence: $salary => $expectedCompensation", function (_a) {
38
+ var _b;
39
+ var categoriePro = _a.categoriePro, semestresAvant2002 = _a.semestresAvant2002, semestresApres2002 = _a.semestresApres2002, seniorityRight = _a.seniorityRight, salary = _a.salary, expectedCompensation = _a.expectedCompensation, seniority = _a.seniority, entryDate = _a.entryDate;
40
+ var _c = engine.setSituation({
41
+ "contrat salarié . convention collective": "'IDCC2120'",
42
+ "contrat salarié . convention collective . banque . catégorie professionnelle": "'".concat(categoriePro, "'"),
43
+ "contrat salarié . convention collective . banque . semestres complets après 2002": semestresApres2002,
44
+ "contrat salarié . convention collective . banque . semestres complets avant 2002": semestresAvant2002,
45
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
46
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
47
+ "contrat salarié . indemnité de licenciement . date d'entrée": entryDate,
48
+ "contrat salarié . indemnité de licenciement . inaptitude suite à un accident ou maladie professionnelle": "oui",
49
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
50
+ }, "contrat salarié . indemnité de licenciement . résultat conventionnel"), result = _c.result, missingArgs = _c.missingArgs;
51
+ expect(missingArgs).toEqual([]);
52
+ expect(result.value).toEqual(expectedCompensation);
53
+ expect((_b = result.unit) === null || _b === void 0 ? void 0 : _b.numerators).toEqual(["€"]);
54
+ });
32
55
  });
33
56
  });
34
- var templateObject_1;
57
+ var templateObject_1, templateObject_2;
@@ -3,20 +3,34 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
4
  return cooked;
5
5
  };
6
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
8
+ if (ar || !(i in from)) {
9
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
10
+ ar[i] = from[i];
11
+ }
12
+ }
13
+ return to.concat(ar || Array.prototype.slice.call(from));
14
+ };
6
15
  Object.defineProperty(exports, "__esModule", { value: true });
7
16
  var publicodes_1 = require("../../../../../publicodes");
8
17
  var common_1 = require("../../../../common");
9
18
  var engine = new publicodes_1.IndemniteLicenciementPublicodes(modelsIndemniteLicenciement, "2120");
10
- var notification = [
19
+ var defaultNotification = [
11
20
  {
12
- description: "Si lors de l\u2019absence pour maladie non professionnelle le salari\u00E9 a b\u00E9n\u00E9fici\u00E9 d\u2019une indemnisation compl\u00E9mentaire vers\u00E9e par l'employeur (maintien de salaire), en plus des indemnit\u00E9s journali\u00E8res de la s\u00E9curit\u00E9 sociale, le montant de l\u2019indemnit\u00E9 de licenciement pourrait \u00EAtre plus \u00E9lev\u00E9. En effet, dans ce cas, la p\u00E9riode d\u2019absence est int\u00E9gr\u00E9e dans l\u2019anciennet\u00E9 du salari\u00E9.\nPar soucis de simplification, ce simulateur d\u00E9duit toutes les absences pour maladie non professionnelle sans distinguer, pour calculer l\u2019anciennet\u00E9 du salari\u00E9, selon qu\u2019elles ont \u00E9t\u00E9 indemnis\u00E9es ou pas.",
21
+ description: "Si au cours des 12 derniers mois le salari\u00E9 a per\u00E7u des primes, des \u00E9l\u00E9ments variables ou des avantages en nature, le montant de l\u2019indemnit\u00E9 de licenciement pourrait \u00EAtre moins \u00E9lev\u00E9. En effet, la convention collective pr\u00E9voit que l\u2019indemnit\u00E9 de licenciement doit \u00EAtre calcul\u00E9e sur la base du salaire sans ces \u00E9l\u00E9ments de r\u00E9mun\u00E9ration alors que le simulateur les int\u00E8gre.",
13
22
  },
14
23
  ];
15
- var notification2 = [
24
+ var notification = __spreadArray([
16
25
  {
17
- description: "Si lors de l\u2019absence pour accident de trajet le salari\u00E9 a b\u00E9n\u00E9fici\u00E9 d\u2019une indemnisation compl\u00E9mentaire vers\u00E9e par l'employeur (maintien de salaire), en plus des indemnit\u00E9s journali\u00E8res de la s\u00E9curit\u00E9 sociale, le montant de l\u2019indemnit\u00E9 de licenciement pourrait \u00EAtre plus \u00E9lev\u00E9. En effet, dans ce cas, la p\u00E9riode d\u2019absence est int\u00E9gr\u00E9e dans l\u2019anciennet\u00E9 du salari\u00E9.\nPar soucis de simplification, ce simulateur d\u00E9duit toutes les absences pour accident de trajet sans distinguer, pour calculer l\u2019anciennet\u00E9 du salari\u00E9, selon qu\u2019elles ont \u00E9t\u00E9 indemnis\u00E9es ou pas.",
18
- },
19
- ];
26
+ description: "Si lors de l\u2019absence pour maladie non professionnelle le salari\u00E9 a b\u00E9n\u00E9fici\u00E9 d\u2019une indemnisation compl\u00E9mentaire vers\u00E9e par l'employeur (maintien de salaire), en plus des indemnit\u00E9s journali\u00E8res de la s\u00E9curit\u00E9 sociale, le montant de l\u2019indemnit\u00E9 de licenciement pourrait \u00EAtre plus \u00E9lev\u00E9. En effet, dans ce cas, la p\u00E9riode d\u2019absence est int\u00E9gr\u00E9e dans l\u2019anciennet\u00E9 du salari\u00E9.\nPar soucis de simplification, ce simulateur d\u00E9duit toutes les absences pour maladie non professionnelle sans distinguer, pour calculer l\u2019anciennet\u00E9 du salari\u00E9, selon qu\u2019elles ont \u00E9t\u00E9 indemnis\u00E9es ou pas.\n",
27
+ }
28
+ ], defaultNotification, true);
29
+ var notification2 = __spreadArray([
30
+ {
31
+ description: "Si lors de l\u2019absence pour accident de trajet le salari\u00E9 a b\u00E9n\u00E9fici\u00E9 d\u2019une indemnisation compl\u00E9mentaire vers\u00E9e par l'employeur (maintien de salaire), en plus des indemnit\u00E9s journali\u00E8res de la s\u00E9curit\u00E9 sociale, le montant de l\u2019indemnit\u00E9 de licenciement pourrait \u00EAtre plus \u00E9lev\u00E9. En effet, dans ce cas, la p\u00E9riode d\u2019absence est int\u00E9gr\u00E9e dans l\u2019anciennet\u00E9 du salari\u00E9.\nPar soucis de simplification, ce simulateur d\u00E9duit toutes les absences pour accident de trajet sans distinguer, pour calculer l\u2019anciennet\u00E9 du salari\u00E9, selon qu\u2019elles ont \u00E9t\u00E9 indemnis\u00E9es ou pas.\n",
32
+ }
33
+ ], defaultNotification, true);
20
34
  describe("Notifications pour la CC 650", function () {
21
35
  describe("Maladie non pro", function () {
22
36
  describe("Affiche une notification", function () {
@@ -32,6 +46,7 @@ describe("Notifications pour la CC 650", function () {
32
46
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
33
47
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
34
48
  "contrat salarié . indemnité de licenciement . date d'entrée": entryDate,
49
+ "contrat salarié . indemnité de licenciement . inaptitude suite à un accident ou maladie professionnelle": "non",
35
50
  "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
36
51
  }, licenciementDisciplinaire
37
52
  ? {
@@ -40,12 +55,17 @@ describe("Notifications pour la CC 650", function () {
40
55
  : {}), "contrat salarié . indemnité de licenciement . résultat conventionnel");
41
56
  var notifs = engine.getNotifications();
42
57
  expect(notifs).toHaveLength(expectedNotif.length);
43
- expect(notifs[0].description).toContain(expectedNotif[0].description);
58
+ var notifsToCompare = notifs.map(function (notif) {
59
+ return {
60
+ description: notif.description,
61
+ };
62
+ });
63
+ expect(notifsToCompare).toEqual(expectedNotif);
44
64
  });
45
65
  });
46
66
  describe("N'affiche pas la notification", function () {
47
- test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedNotif\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "], ["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedNotif\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "])), "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.67, 15, 2000, [], "01/01/1999", "Cadres", 6, 34, common_1.QuestionOuiNon.oui, undefined, 1, 20, 3064, [], "01/01/2000", "Non-cadres", 4, 27, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 1991, [], "01/01/2000", "Non-cadres", 4, 21, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 1991, [], "01/01/1999", "Non-cadres", 6, 34, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 20, 2772, [], "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 24, 2772, [], "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 1, 24, 2772, notification)("$#) Catégorie pro $categoriePro, entryDate $entryDate, seniorityRight: $seniorityRight an, semestresAvant2002 $semestresAvant2002, semestresApres2002 $semestresApres2002, licenciementDisciplinaire $licenciementDisciplinaire, licenciementEco $licenciementEco, salaire de référence: $salary => $expectedRef", function (_a) {
48
- var categoriePro = _a.categoriePro, licenciementEco = _a.licenciementEco, licenciementDisciplinaire = _a.licenciementDisciplinaire, semestresAvant2002 = _a.semestresAvant2002, semestresApres2002 = _a.semestresApres2002, seniorityRight = _a.seniorityRight, salary = _a.salary, seniority = _a.seniority, entryDate = _a.entryDate;
67
+ test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedNotif\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "], ["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedNotif\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "])), "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.67, 15, 2000, defaultNotification, "01/01/1999", "Cadres", 6, 34, common_1.QuestionOuiNon.oui, undefined, 1, 20, 3064, defaultNotification, "01/01/2000", "Non-cadres", 4, 27, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 1991, defaultNotification, "01/01/2000", "Non-cadres", 4, 21, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 1991, defaultNotification, "01/01/1999", "Non-cadres", 6, 34, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 20, 2772, defaultNotification, "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 24, 2772, defaultNotification, "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 1, 24, 2772, defaultNotification)("$#) Catégorie pro $categoriePro, entryDate $entryDate, seniorityRight: $seniorityRight an, semestresAvant2002 $semestresAvant2002, semestresApres2002 $semestresApres2002, licenciementDisciplinaire $licenciementDisciplinaire, licenciementEco $licenciementEco, salaire de référence: $salary => $expectedRef", function (_a) {
68
+ var categoriePro = _a.categoriePro, licenciementEco = _a.licenciementEco, licenciementDisciplinaire = _a.licenciementDisciplinaire, semestresAvant2002 = _a.semestresAvant2002, semestresApres2002 = _a.semestresApres2002, seniorityRight = _a.seniorityRight, salary = _a.salary, seniority = _a.seniority, entryDate = _a.entryDate, expectedNotif = _a.expectedNotif;
49
69
  engine.setSituation(Object.assign({
50
70
  "contrat salarié . convention collective": "'IDCC2120'",
51
71
  "contrat salarié . convention collective . banque . catégorie professionnelle": "'".concat(categoriePro, "'"),
@@ -55,6 +75,7 @@ describe("Notifications pour la CC 650", function () {
55
75
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
56
76
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
57
77
  "contrat salarié . indemnité de licenciement . date d'entrée": entryDate,
78
+ "contrat salarié . indemnité de licenciement . inaptitude suite à un accident ou maladie professionnelle": "non",
58
79
  "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
59
80
  }, licenciementDisciplinaire
60
81
  ? {
@@ -62,7 +83,13 @@ describe("Notifications pour la CC 650", function () {
62
83
  }
63
84
  : {}), "contrat salarié . indemnité de licenciement . résultat conventionnel");
64
85
  var notifs = engine.getNotifications();
65
- expect(notifs).toHaveLength(0);
86
+ expect(notifs).toHaveLength(expectedNotif.length);
87
+ var notifsToCompare = notifs.map(function (notif) {
88
+ return {
89
+ description: notif.description,
90
+ };
91
+ });
92
+ expect(notifsToCompare).toEqual(expectedNotif);
66
93
  });
67
94
  });
68
95
  });
@@ -80,6 +107,7 @@ describe("Notifications pour la CC 650", function () {
80
107
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
81
108
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
82
109
  "contrat salarié . indemnité de licenciement . date d'entrée": entryDate,
110
+ "contrat salarié . indemnité de licenciement . inaptitude suite à un accident ou maladie professionnelle": "non",
83
111
  "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
84
112
  }, licenciementDisciplinaire
85
113
  ? {
@@ -88,12 +116,17 @@ describe("Notifications pour la CC 650", function () {
88
116
  : {}), "contrat salarié . indemnité de licenciement . résultat conventionnel");
89
117
  var notifs = engine.getNotifications();
90
118
  expect(notifs).toHaveLength(expectedNotif.length);
91
- expect(notifs[0].description).toContain(expectedNotif[0].description);
119
+ var notifsToCompare = notifs.map(function (notif) {
120
+ return {
121
+ description: notif.description,
122
+ };
123
+ });
124
+ expect(notifsToCompare).toEqual(expectedNotif);
92
125
  });
93
126
  });
94
- describe("N'affiche pas la notification", function () {
95
- test.each(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedNotif\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "], ["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedNotif\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "])), "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.67, 15, 2000, [], "01/01/1999", "Cadres", 6, 34, common_1.QuestionOuiNon.oui, undefined, 1, 20, 3064, [], "01/01/2000", "Non-cadres", 4, 27, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 1991, [], "01/01/2000", "Non-cadres", 4, 21, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 1991, [], "01/01/1999", "Non-cadres", 6, 34, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 20, 2772, [], "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 24, 2772, [], "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 1, 24, 2772, notification)("$#) Catégorie pro $categoriePro, entryDate $entryDate, seniorityRight: $seniorityRight an, semestresAvant2002 $semestresAvant2002, semestresApres2002 $semestresApres2002, licenciementDisciplinaire $licenciementDisciplinaire, licenciementEco $licenciementEco, salaire de référence: $salary => $expectedRef", function (_a) {
96
- var categoriePro = _a.categoriePro, licenciementEco = _a.licenciementEco, licenciementDisciplinaire = _a.licenciementDisciplinaire, semestresAvant2002 = _a.semestresAvant2002, semestresApres2002 = _a.semestresApres2002, seniorityRight = _a.seniorityRight, salary = _a.salary, seniority = _a.seniority, entryDate = _a.entryDate;
127
+ describe("N'affiche que la notification de base", function () {
128
+ test.each(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedNotif\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "], ["\n entryDate | categoriePro | semestresAvant2002 | semestresApres2002 | licenciementEco | licenciementDisciplinaire | seniorityRight | seniority | salary | expectedNotif\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "])), "01/01/1999", "Non-cadres", 0, 0, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 0.67, 15, 2000, defaultNotification, "01/01/1999", "Cadres", 6, 34, common_1.QuestionOuiNon.oui, undefined, 1, 20, 3064, defaultNotification, "01/01/2000", "Non-cadres", 4, 27, common_1.QuestionOuiNon.oui, undefined, 1, 15.67, 1991, defaultNotification, "01/01/2000", "Non-cadres", 4, 21, common_1.QuestionOuiNon.oui, undefined, 1, 12.5, 1991, defaultNotification, "01/01/1999", "Non-cadres", 6, 34, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 20, 2772, defaultNotification, "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.non, 1, 24, 2772, defaultNotification, "01/01/1999", "Cadres", 6, 42, common_1.QuestionOuiNon.non, common_1.QuestionOuiNon.oui, 1, 24, 2772, defaultNotification)("$#) Catégorie pro $categoriePro, entryDate $entryDate, seniorityRight: $seniorityRight an, semestresAvant2002 $semestresAvant2002, semestresApres2002 $semestresApres2002, licenciementDisciplinaire $licenciementDisciplinaire, licenciementEco $licenciementEco, salaire de référence: $salary => $expectedRef", function (_a) {
129
+ var categoriePro = _a.categoriePro, licenciementEco = _a.licenciementEco, licenciementDisciplinaire = _a.licenciementDisciplinaire, semestresAvant2002 = _a.semestresAvant2002, semestresApres2002 = _a.semestresApres2002, seniorityRight = _a.seniorityRight, salary = _a.salary, seniority = _a.seniority, entryDate = _a.entryDate, expectedNotif = _a.expectedNotif;
97
130
  engine.setSituation(Object.assign({
98
131
  "contrat salarié . convention collective": "'IDCC2120'",
99
132
  "contrat salarié . convention collective . banque . catégorie professionnelle": "'".concat(categoriePro, "'"),
@@ -103,6 +136,7 @@ describe("Notifications pour la CC 650", function () {
103
136
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
104
137
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
105
138
  "contrat salarié . indemnité de licenciement . date d'entrée": entryDate,
139
+ "contrat salarié . indemnité de licenciement . inaptitude suite à un accident ou maladie professionnelle": "non",
106
140
  "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
107
141
  }, licenciementDisciplinaire
108
142
  ? {
@@ -110,7 +144,13 @@ describe("Notifications pour la CC 650", function () {
110
144
  }
111
145
  : {}), "contrat salarié . indemnité de licenciement . résultat conventionnel");
112
146
  var notifs = engine.getNotifications();
113
- expect(notifs).toHaveLength(0);
147
+ expect(notifs).toHaveLength(expectedNotif.length);
148
+ var notifsToCompare = notifs.map(function (notif) {
149
+ return {
150
+ description: notif.description,
151
+ };
152
+ });
153
+ expect(notifsToCompare).toEqual(expectedNotif);
114
154
  });
115
155
  });
116
156
  });
@@ -65,6 +65,7 @@ describe("Vérification des références juridiques pour la CC 2120", function (
65
65
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
66
66
  "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
67
67
  "contrat salarié . indemnité de licenciement . date d'entrée": entryDate,
68
+ "contrat salarié . indemnité de licenciement . inaptitude suite à un accident ou maladie professionnelle": "non",
68
69
  "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
69
70
  }, licenciementDisciplinaire
70
71
  ? {
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  var common_1 = require("../../../../common");
8
8
  describe("CC 2216", 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 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 "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { motif: { key: common_1.MotifKeys.maladieNonPro } } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducation } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: "1", motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: "1", motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.miseAPied } }], "20/01/2021", "20/02/2021", -0.375, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 11, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 13, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 40.916666666666664, [{ durationInMonth: 11, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 13, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 40.916666666666664, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 13, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 40.916666666666664, [{ durationInMonth: 1, motif: { key: common_1.MotifKeys.congesSabbatique } }], "01/01/2022", "01/02/2023", 1)("Calcul de l'ancienneté avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
10
+ test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n 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 "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { motif: { key: common_1.MotifKeys.maladieNonPro } } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducation } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: "1", motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9583333333333334, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 0.9166666666666666, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: "1", motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.miseAPied } }], "20/01/2021", "20/02/2021", -0.375, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 11, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 13, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 41.916666666666664, [{ durationInMonth: 11, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 13, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 41.916666666666664, [{ durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 6, motif: { key: common_1.MotifKeys.maladieNonPro } }, { 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 } }], "01/01/1979", "01/01/2021", 41.916666666666664, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 13, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 40.916666666666664, [{ 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.IDCC2216);
13
13
  var result = seniority.computeSeniority({