Skip to content

Commit

Permalink
Merge pull request #221 from openfisca/montpellier-mutuelle-communal
Browse files Browse the repository at this point in the history
Mise à jour des communes associées à la mutuelle communale de la métropole de Montpellier
  • Loading branch information
jenovateurs authored Jan 2, 2025
2 parents d93a24c + 4abec45 commit 96fc838
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 13 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog
## [6.17.2] - 2024-11-14
## [6.17.3] - 2024-12-27

_Pour les changements détaillés et les discussions associées, référencez la pull request [#221](https://github.com/openfisca/openfisca-france-local/pull/221)_

### Changed

- Ajout d'autres codes postaux pour le dispositif de mutuelle communale de la métropole de Montpellier : `eligibilite_metropole_mutuelle`

## [6.17.2] - 2024-12-30

_Pour les changements détaillés et les discussions associées, référencez la pull request [#220](https://github.com/openfisca/openfisca-france-local/pull/223)_

Expand Down
10 changes: 0 additions & 10 deletions openfisca_france_local/communes/montpellier/eligibilite.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from openfisca_france.model.base import Menage, MONTH, Variable

class montpellier_mutuelle_eligibilite_residence(Variable):
value_type = bool
entity = Menage
definition_period = MONTH
label = "Éligibilité résidentielle d'un ménage à la mutuelle communale de la métropole de Montpellier"
reference = "https://encommun.montpellier.fr/articles/2024-12-19-lagence-de-la-mutuelle-communale-de-montpellier-est-ouverte"

def formula(menage, period):
return sum(menage('depcom', period) == code for code in [
b'34172', # Montpellier
b'34077', # Clapiers
b'34090', # Le Crès
b'34179', # Murviel-lès-Montpellier
b'34256', # Saint-Geniès-des-Mourgues
b'34307' # Sussargues
]) > 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class montpellier_mutuelle_communale(Variable):
]

def formula(famille, period):
eligibilite_residentielle = famille.demandeur.menage('montpellier_eligibilite_residence', period)
eligibilite_residentielle = famille.demandeur.menage('montpellier_mutuelle_eligibilite_residence', period)
css_participation_forfaitaire = famille('css_participation_forfaitaire', period)
cmu_c = famille('cmu_c', period)
eligibilite_css_cmu_c = (css_participation_forfaitaire > 0) | cmu_c
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.17.2',
version='6.17.3',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
Expand Down

0 comments on commit 96fc838

Please sign in to comment.