diff --git a/CHANGELOG.md b/CHANGELOG.md index b26f8c35..fbd6b7ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Changelog +## [6.11.1] - 2023-12-06 + +_Pour les changements détaillés et les discussions associées, référencez la pull request [#196](https://github.com/openfisca/openfisca-france-local/pull/196)_ + +### Fixed + +- Corrige la periode dans la formule du dispositif `yvelines_aide_permis` + ## [6.11.0] - 2023-12-03 _Pour les changements détaillés et les discussions associées, référencez la pull request [#193](https://github.com/openfisca/openfisca-france-local/pull/193)_ diff --git a/openfisca_france_local/departements/yvelines/aide_permis.py b/openfisca_france_local/departements/yvelines/aide_permis.py index d88246ea..0ce20609 100644 --- a/openfisca_france_local/departements/yvelines/aide_permis.py +++ b/openfisca_france_local/departements/yvelines/aide_permis.py @@ -19,8 +19,8 @@ def formula(individu, period, parameters): eligibilite_residentielle = individu.menage('yvelines_eligibilite_residence', period) - rbg = individu.foyer_fiscal('rbg', period.last_year) - nb_pac = individu.foyer_fiscal('nb_pac', period.last_year) + rbg = individu.foyer_fiscal('rbg', period.n_2) + nb_pac = individu.foyer_fiscal('nb_pac', period.n_2) rbg_max = params.revenu_global_brut.base + (nb_pac * params.revenu_global_brut.marginal_par_personne) eligibilite_revenu = rbg < rbg_max diff --git a/setup.py b/setup.py index ea4d3d7a..688d8982 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='OpenFisca-France-Local', - version='6.11.0', + version='6.11.1', author='OpenFisca Team', author_email='contact@openfisca.fr', classifiers=[ diff --git a/tests/departements/yvelines/aide_permis.yml b/tests/departements/yvelines/aide_permis.yml index 94675519..05c5433f 100644 --- a/tests/departements/yvelines/aide_permis.yml +++ b/tests/departements/yvelines/aide_permis.yml @@ -3,10 +3,6 @@ input: age: [17, 18, 25, 32, 22] depcom: ['78000', '78000', '78000', '78000', '13000'] - rbg: - 2022: ['9000','9000','9000','9000', '9000'] - nb_pac: - 2022: ['1', '1','1','1', '1'] output: yvelines_aide_permis: [0, 500, 500, 0, 0] @@ -16,8 +12,8 @@ age: [18, 18, 18, 18, 18, 18, 18, 18, 18] depcom: ['78000', '78000', '78000', '78000', '78000', '78000', '78000', '78000', '78000'] rbg: - 2022: ['9599', '9600','12799', '12800', '15999', '16000', '19199', '19200', '12800'] + 2021: ['9599', '9600','12799', '12800', '15999', '16000', '19199', '19200', '12800'] nb_pac: - 2022: ['1', '1', '2', '2', '3', '3', '4', '4', '1'] + 2021: ['1', '1', '2', '2', '3', '3', '4', '4', '1'] output: yvelines_aide_permis: [500, 0, 500, 0, 500, 0, 500, 0, 0]