From 753e0fc7bc2aac65240f4ffa05db6135f563c924 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Tue, 2 Oct 2018 19:26:30 +0200 Subject: [PATCH] =?UTF-8?q?Affiche=20le=20montant=20des=20indemnit=C3=A9s?= =?UTF-8?q?=20salari=C3=A9es=20dans=20la=20fiche=20de=20paie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/PaySlip.js | 16 ++++++++++++++-- source/règles/base.yaml | 1 + source/selectors/ficheDePaieSelectors.js | 1 + source/types/ResultViewTypes.js | 1 + 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/source/components/PaySlip.js b/source/components/PaySlip.js index 2d61519e4..b7518d8fe 100644 --- a/source/components/PaySlip.js +++ b/source/components/PaySlip.js @@ -27,6 +27,7 @@ const PaySlip = ({ salaireNetDeCotisations, salaireDeBase, salaireChargé, + indemnitésSalarié, salaireNetImposable, nombreHeuresTravaillées, salaireNet, @@ -49,14 +50,25 @@ const PaySlip = ({

Salaire

- {avantagesEnNature.montant !== 0 ? ( + {(avantagesEnNature.montant !== 0 || + indemnitésSalarié.montant !== 0) && ( <> {salaireDeBase.montant} + + )} + {avantagesEnNature.montant !== 0 && ( + <> {avantagesEnNature.montant} - ) : null} + )} + {indemnitésSalarié.montant !== 0 && ( + <> + + {indemnitésSalarié.montant} + + )} {salaireBrut.montant} diff --git a/source/règles/base.yaml b/source/règles/base.yaml index 4ad766d0f..74db0362d 100644 --- a/source/règles/base.yaml +++ b/source/règles/base.yaml @@ -773,6 +773,7 @@ - espace: contrat salarié nom: indemnités salarié + format: euros formule: somme: - CDD . indemnités salarié CDD diff --git a/source/selectors/ficheDePaieSelectors.js b/source/selectors/ficheDePaieSelectors.js index 61f9c2eed..c86a88590 100644 --- a/source/selectors/ficheDePaieSelectors.js +++ b/source/selectors/ficheDePaieSelectors.js @@ -176,6 +176,7 @@ function analysisToFicheDePaie( avantagesEnNature: règleAvecMontant( 'contrat salarié . avantages en nature . montant' ), + indemnitésSalarié: règleAvecMontant('contrat salarié . indemnités salarié'), salaireBrut: règleAvecMontant('contrat salarié . salaire . brut'), cotisations, réductionsDeCotisations, diff --git a/source/types/ResultViewTypes.js b/source/types/ResultViewTypes.js index 7f934bdbe..00a68349f 100644 --- a/source/types/ResultViewTypes.js +++ b/source/types/ResultViewTypes.js @@ -48,6 +48,7 @@ export type VariableWithCotisation = { export type FicheDePaie = { salaireBrut: RègleAvecMontant, avantagesEnNature: RègleAvecMontant, + indemnitésSalarié: RègleAvecMontant, salaireDeBase: RègleAvecMontant, // TODO supprimer (cf https://github.com/betagouv/syso/issues/242) réductionsDeCotisations: RègleAvecMontant,