-
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.
fix: utilisation extraInfos pour les salaires (#5765)
- Loading branch information
Showing
2 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...s/675_habillement_commerce_succursales/__tests__/indemnite-licenciement/calculate.spec.ts
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 { IndemniteLicenciementPublicodes } from "../../../../../publicodes"; | ||
|
||
const engine = new IndemniteLicenciementPublicodes( | ||
modelsIndemniteLicenciement, | ||
"675" | ||
); | ||
|
||
describe("Employés", () => { | ||
test("Vérifier que les extras infos du salaire sont bien pris en compte", () => { | ||
const { result, missingArgs } = engine.calculate( | ||
{ | ||
"contrat salarié . convention collective": "'IDCC0675'", | ||
"contrat salarié . convention collective . habillement commerce succursales . catégorie professionnelle": | ||
"'Employés'", | ||
"contrat salarié . indemnité de licenciement . arrêt de travail": "non", | ||
"contrat salarié . indemnité de licenciement . date d'entrée": | ||
"01/01/2021", | ||
"contrat salarié . indemnité de licenciement . date de notification": | ||
"01/01/2024", | ||
"contrat salarié . indemnité de licenciement . date de sortie": | ||
"01/01/2024", | ||
"contrat salarié . indemnité de licenciement . inaptitude suite à un accident ou maladie professionnelle": | ||
"non", | ||
licenciementFauteGrave: "non", | ||
salaryPeriods: | ||
'[{"month":"décembre 2023","value":1488},{"month":"novembre 2023","value":1488},{"month":"octobre 2023","value":1488},{"month":"septembre 2023","value":1488},{"month":"août 2023","value":1488},{"month":"juillet 2023","value":1488},{"month":"juin 2023","value":1488},{"month":"mai 2023","value":1488},{"month":"avril 2023","value":1488},{"month":"mars 2023","value":1488},{"month":"février 2023","value":1488},{"month":"janvier 2023","value":1488}]', | ||
typeContratTravail: "cdi", | ||
}, | ||
"contrat salarié . indemnité de licenciement . résultat conventionnel" | ||
); | ||
expect(missingArgs).toEqual([]); | ||
expect(result.unit?.numerators).toEqual(["€"]); | ||
expect(result.value).toEqual(446.4); | ||
}); | ||
}); |
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