From 7cdcef9cfaa1907f1a8b62f106205ac6226eb20a Mon Sep 17 00:00:00 2001 From: Jeremy PASTOURET Date: Tue, 12 Nov 2024 18:46:55 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20resolution=20de=20bug=20=C3=A0=20l'usage?= =?UTF-8?q?=20avec=20AJ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communes/antony/antony_aide_depart_sejour_adapte.py | 4 ++-- .../communes/antony/antony_noel_pour_tous.py | 2 +- openfisca_france_local/communes/antony/base_ressources.py | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/openfisca_france_local/communes/antony/antony_aide_depart_sejour_adapte.py b/openfisca_france_local/communes/antony/antony_aide_depart_sejour_adapte.py index 86f2c5f0..4ccce286 100644 --- a/openfisca_france_local/communes/antony/antony_aide_depart_sejour_adapte.py +++ b/openfisca_france_local/communes/antony/antony_aide_depart_sejour_adapte.py @@ -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 diff --git a/openfisca_france_local/communes/antony/antony_noel_pour_tous.py b/openfisca_france_local/communes/antony/antony_noel_pour_tous.py index 9b22c3aa..8c2aecc3 100644 --- a/openfisca_france_local/communes/antony/antony_noel_pour_tous.py +++ b/openfisca_france_local/communes/antony/antony_noel_pour_tous.py @@ -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 diff --git a/openfisca_france_local/communes/antony/base_ressources.py b/openfisca_france_local/communes/antony/base_ressources.py index 5d482654..dcd72ee3 100644 --- a/openfisca_france_local/communes/antony/base_ressources.py +++ b/openfisca_france_local/communes/antony/base_ressources.py @@ -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