Skip to content

Commit

Permalink
feat: ajout des references et mise à jour des valeurs de ressources
Browse files Browse the repository at this point in the history
  • Loading branch information
jenovateurs authored and Shamzic committed Nov 6, 2024
1 parent 84bba5d commit 40ddbee
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
from openfisca_france.model.base import * # noqa analysis:ignore

from openfisca_france.model.base import Famille, Menage, MONTH, Variable, select

class antony_aide_depart_sejour_adapte(Variable):
value_type = float
entity = Famille
definition_period = MONTH
label = "Montant total de l'Aide au départ en séjour adapté de la ville de Antony"
reference = "https://www.ville-antony.fr/aide-aux-departs-en-sejours-vacances"

def formula(famille, period, parameters):
residence_antony = famille.demandeur.menage('antony_eligibilite_residence', period)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from openfisca_france.model.base import * # noqa analysis:ignore
from openfisca_france.model.base import Famille, MONTH, Variable
from openfisca_france.model.prestations.education import TypesScolarite


Expand All @@ -8,6 +8,7 @@ class antony_bourse_communale(Variable):
entity = Famille
definition_period = MONTH
label = "Eligibilité de la famille à la Bourse Communale de la ville de Antony"
reference = "https://www.ville-antony.fr/bourses-communales#restaurationscolaire"

def formula(famille, period, parameters):
residence_antony = famille.demandeur.menage('antony_eligibilite_residence', period)
Expand All @@ -17,6 +18,6 @@ def formula(famille, period, parameters):
scolarite = famille.members('scolarite', period)
scolarise = ((scolarite == TypesScolarite.college) + (scolarite == TypesScolarite.lycee))

au_moins_un_enfant_scolarise = famille.any(scolarise, role = Famille.ENFANT)
au_moins_un_enfant_scolarise = famille.any(scolarise, role=Famille.ENFANT)

return residence_antony * condition_ressources_remplies * au_moins_un_enfant_scolarise
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# -*- coding: utf-8 -*-
from openfisca_france.model.base import * # noqa analysis:ignore
from openfisca_france.model.base import Famille, MONTH, Variable


class antony_bourse_conservatoire(Variable):
value_type = bool
entity = Famille
definition_period = MONTH
label = "Éligibilité de la famille à la Bourse du Conservatoire de la ville de Antony"
reference = "https://www.ville-antony.fr/bourses-communales#conservatoire"

def formula(famille, period, parameters):
age_maximum = parameters(period).communes.antony.bourse_conservatoire.age_maximum
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# -*- coding: utf-8 -*-
from openfisca_france.model.base import * # noqa analysis:ignore
from openfisca_france.model.base import Famille, MONTH, Variable


class antony_bourse_famille_nombreuse(Variable):
value_type = bool
entity = Famille
definition_period = MONTH
label = "Éligibilité de la famille à la Bourse Famille Nombreuse de la ville de Antony"
reference = "https://www.ville-antony.fr/bourses-communales#famillesnombreuses"

def formula(famille, period, parameters):
parameters = parameters(period).communes.antony.bourse_famille_nombreuse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# -*- coding: utf-8 -*-
from openfisca_france.model.base import * # noqa analysis:ignore
from openfisca_france.model.base import Famille, MONTH, Variable


class antony_noel_pour_tous(Variable):
value_type = bool
entity = Famille
definition_period = MONTH
label = "Éligibilité de la famille au Noël pour Tous de la ville de Antony"
reference = "https://www.ville-antony.fr/actualites/noel-ccas-2023"

def formula(famille, period, parameters):
age_maximum = parameters(period).communes.antony.noel_pour_tous.age_maximum
Expand Down
3 changes: 1 addition & 2 deletions openfisca_france_local/communes/antony/eligibilite.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
from openfisca_france.model.base import * # noqa analysis:ignore

from openfisca_france.model.base import Menage, MONTH, Variable

class antony_eligibilite_residence(Variable):
value_type = bool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
description: Age maximum d'au moins un enfant de la famille pour être éligible à l'aide Antony Bourse Conservatoire
reference: https://www.ville-antony.fr/bourses-communales#conservatoire
unit: year
values:
2021-06-01:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
description: Age maximum d'au moins un enfant de la famille pour être éligible à l'aide Antony Bourse Famille Nombreuse
unit: year
reference: "https://www.ville-antony.fr/bourses-communales#famillesnombreuses"
values:
2021-06-01:
value: 1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
description: Nombre minimum d'enfants pour être éligible à l'aide Antony Bourse Famille Nombreuse
description: Nombre minimum d'enfants pour être éligible à l'aide Antony Bourse familles nombreuses
reference: https://www.ville-antony.fr/bourses-communales#famillesnombreuses
values:
2021-06-01:
value: 3
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
description: Age maximum pour être éligible à l'aide Antony Noel pour tous
reference: https://www.ville-antony.fr/actualites/noel-ccas-2023
unit: year
values:
2021-06-01:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bareme_ressources_par_enfant:
reference: https://www.ville-antony.fr/images/Actualite/2024/Aout/CCAS/Imprime-A4-demande-bourse-conservatoire-2024-2025.pdf
description: Barème des plafond de ressources pour le droit aux aides de la ville de Antony
metadata:
type: single_amount
Expand All @@ -7,42 +8,70 @@ bareme_ressources_par_enfant:
- amount:
2021-06-01:
value: 2732
2024-01-01:
value: 3071
threshold:
2021-06-01:
value: 1
2024-01-01:
value: 1
- amount:
2021-06-01:
value: 3559
2024-01-01:
value: 4000
threshold:
2021-06-01:
value: 2
2024-01-01:
value: 2
- amount:
2021-06-01:
value: 4394
2024-01-01:
value: 4940
threshold:
2021-06-01:
value: 3
2024-04-01:
value: 3
- amount:
2021-06-01:
value: 5180
2024-01-01:
value: 5822
threshold:
2021-06-01:
value: 4
2024-01-01:
value: 4
- amount:
2021-06-01:
value: 5961
2024-01-01:
value: 6701
threshold:
2021-06-01:
value: 5
2024-01-01:
value: 5
- amount:
2021-06-01:
value: 6745
2024-01-01:
value: 7581
threshold:
2021-06-01:
value: 6
2024-01-01:
value: 6
- amount:
2021-06-01:
value: 7528
2024-01-01:
value: 8461
threshold:
2021-06-01:
value: 7
2024-01-01:
value: 7

0 comments on commit 40ddbee

Please sign in to comment.