Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mise à jour des communes associées à la mutuelle communale de la métropole de Montpellier #221

Merged
merged 8 commits into from
Jan 2, 2025
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 [
jenovateurs marked this conversation as resolved.
Show resolved Hide resolved
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