Skip to content

Commit

Permalink
fix: resolution de bug à l'usage avec AJ
Browse files Browse the repository at this point in the history
  • Loading branch information
jenovateurs committed Nov 12, 2024
1 parent db9b003 commit 7cdcef9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def formula(famille, period, parameters):

condition_ressources_remplies = famille('antony_eligibilite_ressources', period)

handicap = famille.members('handicap', period)
nb_handicap = famille.sum(famille.members('handicap', period), role = Famille.ENFANT)
montant_individuel = famille('antony_aide_depart_sejour_adapte_montant_individuel', period)
montant_total = famille.sum(montant_individuel * handicap)
montant_total = montant_individuel * nb_handicap

return residence_antony * condition_ressources_remplies * montant_total

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class antony_noel_pour_tous(Variable):
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"
reference = "https://www.ville-antony.fr/actualites/noel-ccas-2024"

def formula(famille, period, parameters):
age_maximum = parameters(period).communes.antony.noel_pour_tous.age_maximum
Expand Down
3 changes: 0 additions & 3 deletions openfisca_france_local/communes/antony/base_ressources.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ class antony_base_ressources(Variable):
label = "Base ressources d'une famille aux dispositifs d'Antony"

def formula(famille, period, parameters):
# N-1
last_year = period.last_year

# M-1 to M-3
last_three_months = period.last_3_months

Expand Down

0 comments on commit 7cdcef9

Please sign in to comment.