mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-11 01:35:00 +00:00
feat(lodeom): ajout de messages d'avertissement adaptés au barème
This commit is contained in:
parent
2f06a8a3c4
commit
d1a68b9abc
4 changed files with 64 additions and 17 deletions
|
@ -78,24 +78,27 @@ describe('Simulateur lodeom', { testIsolation: false }, function () {
|
|||
).should('include.text', '978,25 €')
|
||||
})
|
||||
|
||||
it('should display a warning for a remuneration too high', function () {
|
||||
it('should display a custom warning for a remuneration too high', function () {
|
||||
cy.get(inputSelector).first().type('{selectall}6500')
|
||||
|
||||
cy.get('div[id="simulator-legend"]').should(
|
||||
'include.text',
|
||||
"Le barème d'innovation et croissance concerne uniquement les salaires inférieurs à 3,5 SMIC."
|
||||
)
|
||||
|
||||
cy.contains('Barème de compétitivité renforcée').click()
|
||||
|
||||
cy.get('div[id="simulator-legend"]').should(
|
||||
'include.text',
|
||||
'Le barème de compétitivité renforcée concerne uniquement les salaires inférieurs à 2,7 SMIC.'
|
||||
)
|
||||
|
||||
cy.contains('Barème de compétitivité').click()
|
||||
cy.get(inputSelector).first().type('{selectall}4000')
|
||||
|
||||
cy.get('div[id="simulator-legend"]').should(
|
||||
'include.text',
|
||||
'Le barème de compétitivité concerne uniquement les salaires inférieurs à 2,2 SMIC.'
|
||||
)
|
||||
|
||||
cy.get(
|
||||
'p[id="salarié___cotisations___exonérations___lodeom___montant-value"]'
|
||||
).should('have.text', '0 €')
|
||||
cy.get(
|
||||
'p[id="salarié___cotisations___exonérations___lodeom___montant___imputation_retraite_complémentaire-value"]'
|
||||
).should('have.text', '0 €')
|
||||
cy.get(
|
||||
'p[id="salarié___cotisations___exonérations___lodeom___montant___imputation_sécurité_sociale-value"]'
|
||||
).should('have.text', '0 €')
|
||||
})
|
||||
|
||||
it('should display remuneration and Lodeom month by month', function () {
|
||||
|
|
|
@ -1472,6 +1472,12 @@ pages:
|
|||
barème-compétitivité: The competitiveness scale only applies to salaries below
|
||||
2.2 SMIC. This means, for 2024, a total remuneration not exceeding
|
||||
<1>€3,964</1> gross per month.
|
||||
barème-compétitivité-renforcée: The enhanced competitiveness scale only applies
|
||||
to salaries below 2.7 SMIC. This means, for 2024, a total
|
||||
remuneration not exceeding <2>€4,864.86</2> gross per month.
|
||||
barème-innovation-croissance: The innovation and growth scale only applies to
|
||||
salaries below 3.5 SMIC. This means, for 2024, a total
|
||||
remuneration not exceeding <2>€6,306.30</2> gross per month.
|
||||
stage: The Lodeom exemption does not apply to internship bonuses.
|
||||
médecin:
|
||||
meta:
|
||||
|
|
|
@ -1566,6 +1566,14 @@ pages:
|
|||
salaires inférieurs à 2,2 SMIC. C'est-à-dire, pour 2024, une
|
||||
rémunération totale qui ne dépasse pas <1>3 964 €</1> bruts par
|
||||
mois.
|
||||
barème-compétitivité-renforcée: Le barème de compétitivité renforcée concerne
|
||||
uniquement les salaires inférieurs à 2,7 SMIC. C'est-à-dire, pour
|
||||
2024, une rémunération totale qui ne dépasse pas <2>4 864,86 €</2>
|
||||
bruts par mois.
|
||||
barème-innovation-croissance: Le barème d'innovation et croissance concerne
|
||||
uniquement les salaires inférieurs à 3,5 SMIC. C'est-à-dire, pour
|
||||
2024, une rémunération totale qui ne dépasse pas <2>6 306,30 €</2>
|
||||
bruts par mois.
|
||||
stage: L'exonération Lodeom ne s'applique pas sur les gratifications de stage.
|
||||
médecin:
|
||||
meta:
|
||||
|
|
|
@ -1,11 +1,41 @@
|
|||
import { Trans } from 'react-i18next'
|
||||
|
||||
import { useEngine } from '@/components/utils/EngineContext'
|
||||
|
||||
export default function WarningSalaireTrans() {
|
||||
const engine = useEngine()
|
||||
const currentBarème = engine.evaluate(
|
||||
'salarié . cotisations . exonérations . lodeom . zone un . barèmes'
|
||||
).nodeValue
|
||||
|
||||
return (
|
||||
<Trans i18nKey="pages.simulateurs.lodeom.warnings.salaire.zone-un.barème-compétitivité">
|
||||
Le barème de compétitivité concerne uniquement les salaires inférieurs à
|
||||
2,2 SMIC. C'est-à-dire, pour 2024, une rémunération totale qui ne dépasse
|
||||
pas <strong>3 964 €</strong> bruts par mois.
|
||||
</Trans>
|
||||
currentBarème && (
|
||||
<>
|
||||
{currentBarème === 'barème compétitivité' && (
|
||||
<Trans i18nKey="pages.simulateurs.lodeom.warnings.salaire.zone-un.barème-compétitivité">
|
||||
Le barème de compétitivité concerne uniquement les salaires
|
||||
inférieurs à 2,2 SMIC. C'est-à-dire, pour 2024, une rémunération
|
||||
totale qui ne dépasse pas <strong>3 964 €</strong> bruts
|
||||
par mois.
|
||||
</Trans>
|
||||
)}
|
||||
{currentBarème === 'barème compétitivité renforcée' && (
|
||||
<Trans i18nKey="pages.simulateurs.lodeom.warnings.salaire.zone-un.barème-compétitivité-renforcée">
|
||||
Le barème de compétitivité renforcée concerne uniquement les
|
||||
salaires inférieurs à 2,7 SMIC. C'est-à-dire, pour 2024, une
|
||||
rémunération totale qui ne dépasse pas{' '}
|
||||
<strong>4 864,86 €</strong> bruts par mois.
|
||||
</Trans>
|
||||
)}
|
||||
{currentBarème === 'barème innovation et croissance' && (
|
||||
<Trans i18nKey="pages.simulateurs.lodeom.warnings.salaire.zone-un.barème-innovation-croissance">
|
||||
Le barème d'innovation et croissance concerne uniquement les
|
||||
salaires inférieurs à 3,5 SMIC. C'est-à-dire, pour 2024, une
|
||||
rémunération totale qui ne dépasse pas{' '}
|
||||
<strong>6 306,30 €</strong> bruts par mois.
|
||||
</Trans>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue