-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(outil-idl): exclude some CCNS, fix #886
- Loading branch information
Julien Bouquillon
committed
Jun 18, 2019
1 parent
328e631
commit ab291bb
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
packages/code-du-travail-frontend/src/outils/indemniteLicenciement/ccn/1979_indemnite.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
}; | ||
} |