Skip to content

Commit

Permalink
Corrige la periode de calcul dans la formula de l'aide au permis de c…
Browse files Browse the repository at this point in the history
…onduire de la region des Yvelines (#196)
  • Loading branch information
Allan-CodeWorks authored Dec 6, 2023
1 parent cb6e189 commit cba7f14
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)_
Expand Down
4 changes: 2 additions & 2 deletions openfisca_france_local/departements/yvelines/aide_permis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='OpenFisca-France-Local',
version='6.11.0',
version='6.11.1',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
Expand Down
8 changes: 2 additions & 6 deletions tests/departements/yvelines/aide_permis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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]

0 comments on commit cba7f14

Please sign in to comment.