From ab291bb7f852d5c2759b273c27513b47558571ee Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Wed, 5 Jun 2019 14:54:28 +0200 Subject: [PATCH] feat(outil-idl): exclude some CCNS, fix #886 --- .../ccn/1979_indemnite.js | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 packages/code-du-travail-frontend/src/outils/indemniteLicenciement/ccn/1979_indemnite.js diff --git a/packages/code-du-travail-frontend/src/outils/indemniteLicenciement/ccn/1979_indemnite.js b/packages/code-du-travail-frontend/src/outils/indemniteLicenciement/ccn/1979_indemnite.js new file mode 100644 index 00000000000..747f3bf4989 --- /dev/null +++ b/packages/code-du-travail-frontend/src/outils/indemniteLicenciement/ccn/1979_indemnite.js @@ -0,0 +1,35 @@ +import { round } from "../math"; +/** + * calcul de l'indemnite de licenciement conventionnelle + * de la branche HCR + */ + +export function getSalaireRef({ + salaireRefLegal + // groupe, + // salaires, + // salaire, + // dateNotification +}) { + return salaireRefLegal; +} + +export function getIndemnite({ + salaireRef, + indemnite, + anciennete, + age, + hasOpe = false, + isEco = false, + groupe = "I" +}) { + // ancienneté en année + //const anneeAncienete = Math.floor(anciennete); + let indemniteConventionnelle = 0; + let formula = ""; + + return { + indemniteConventionnelle: round(indemniteConventionnelle), + formula + }; +}