Ajout de l'unité aux barèmes

pull/603/head
Mael 2019-07-23 14:21:35 +02:00
parent 906dcf8c80
commit 8b8afd528b
3 changed files with 14 additions and 7 deletions

View File

@ -37,7 +37,8 @@ let Component = withLanguage(function Barème({
nodeValue,
explanation,
barèmeType,
lazyEval
lazyEval,
unit
}) {
return (
<ShowValuesConsumer>
@ -46,6 +47,7 @@ let Component = withLanguage(function Barème({
classes="mecanism barème"
name={barèmeType === 'marginal' ? 'barème' : 'barème linéaire'}
value={nodeValue}
unit={unit}
child={
<ul className="properties">
<BarèmeAttributes explanation={explanation} lazyEval={lazyEval} />
@ -159,6 +161,9 @@ let Tranche = ({
}
//eslint-disable-next-line
export default barèmeType => (nodeValue, explanation, lazyEval = identity) => (
<Component {...{ nodeValue, explanation, barèmeType, lazyEval }} />
)
export default barèmeType => (
nodeValue,
explanation,
lazyEval = identity,
unit
) => <Component {...{ nodeValue, explanation, barèmeType, lazyEval, unit }} />

View File

@ -7,7 +7,7 @@ import withLanguage from 'Components/utils/withLanguage'
import { BarèmeAttributes } from './Barème'
import { sortObjectByKeys } from 'Engine/mecanismViews/common'
let Comp = withLanguage(function Barème({ nodeValue, explanation }) {
let Comp = withLanguage(function Barème({ nodeValue, explanation, unit }) {
return (
<ShowValuesConsumer>
{showValues => (
@ -15,6 +15,7 @@ let Comp = withLanguage(function Barème({ nodeValue, explanation }) {
classes="mecanism barème"
name="barème continu"
value={nodeValue}
unit={unit}
child={
<ul className="properties">
<BarèmeAttributes explanation={explanation} />
@ -60,6 +61,6 @@ let Comp = withLanguage(function Barème({ nodeValue, explanation }) {
})
//eslint-disable-next-line
export default (nodeValue, explanation) => (
<Comp {...{ nodeValue, explanation }} />
export default (nodeValue, explanation, _, unit) => (
<Comp {...{ nodeValue, explanation, unit }} />
)

View File

@ -1013,6 +1013,7 @@
description: Le plafond de Sécurité sociale est le montant maximum des rémunérations à prendre en compte pour le calcul de certaines cotisations.
période: mois
formule: 3377
unité:
références:
2019: https://www.urssaf.fr/portail/home/actualites/toute-lactualite-employeur/plafond-de-la-securite-social-1.html
arrêté: https://www.legifrance.gouv.fr/affichTexte.do?cidTexte=JORFTEXT000036171732