From 8e3e5870636d2dc3c52971cb236abe6f83bb7fea Mon Sep 17 00:00:00 2001 From: b-michaud Date: Wed, 5 Mar 2025 10:02:55 +0100 Subject: [PATCH] deplace les parametres de participation minimale p0 (secteur locatif) --- openfisca_france/model/prestations/aides_logement.py | 4 ++-- .../p0_participation_minimale/index.yaml | 6 ++++++ .../p0_participation_minimale/p0_forfait.yaml} | 6 +++--- .../p0_participation_minimale/p0_taux.yaml} | 6 +++--- 4 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/index.yaml rename openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/{al_loc2/montant_forfaitaire_participation_minimale_po.yaml => secteur_locatif/pp_participation_personnelle/p0_participation_minimale/p0_forfait.yaml} (95%) rename openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/{al_loc2/montant_proportionnel_participation_minimale_po.yaml => secteur_locatif/pp_participation_personnelle/p0_participation_minimale/p0_taux.yaml} (75%) diff --git a/openfisca_france/model/prestations/aides_logement.py b/openfisca_france/model/prestations/aides_logement.py index efa8d8059a..ab5149b19e 100644 --- a/openfisca_france/model/prestations/aides_logement.py +++ b/openfisca_france/model/prestations/aides_logement.py @@ -1365,7 +1365,7 @@ class aide_logement_participation_personnelle(Variable): set_input = set_input_divide_by_period def formula(famille, period, parameters): - al = parameters(period).prestations_sociales.aides_logement.allocations_logement.al_loc2 + al_participation_minimale = parameters(period).prestations_sociales.aides_logement.allocations_logement.secteur_locatif.pp_participation_personnelle.p0_participation_minimale R = famille('aide_logement_base_ressources', period) R0 = famille('aide_logement_R0', period) @@ -1374,7 +1374,7 @@ def formula(famille, period, parameters): loyer_retenu = famille('aide_logement_loyer_retenu', period) charges_retenues = famille('aide_logement_charges', period) E = loyer_retenu + charges_retenues - P0 = max_(al.montant_proportionnel_participation_minimale_po * E, al.montant_forfaitaire_participation_minimale_po) # Participation personnelle minimale + P0 = max_(al_participation_minimale.p0_taux * E, al_participation_minimale.p0_forfait) # Participation personnelle minimale Tf = famille('aide_logement_taux_famille', period) Tl = famille('aide_logement_taux_loyer', period) diff --git a/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/index.yaml b/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/index.yaml new file mode 100644 index 0000000000..a076fdc78e --- /dev/null +++ b/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/index.yaml @@ -0,0 +1,6 @@ +description: Montant minimum de la participation minimale « P0 » intervenant sur la participation personnelle du ménage « Pp » prise en compte dans le calcul de l'aide mensuelle au logement +metadata: + short_label: Participation minimale « P0 » + order: + - p0_taux + - p0_forfait diff --git a/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/al_loc2/montant_forfaitaire_participation_minimale_po.yaml b/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/p0_forfait.yaml similarity index 95% rename from openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/al_loc2/montant_forfaitaire_participation_minimale_po.yaml rename to openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/p0_forfait.yaml index 0137720142..e339e7c795 100644 --- a/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/al_loc2/montant_forfaitaire_participation_minimale_po.yaml +++ b/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/p0_forfait.yaml @@ -1,4 +1,4 @@ -description: Montant minimum de la participation minimale « P0 » intervenant sur la participation personnelle du ménage « Pp » prise en compte dans le calcul de l'aide mensuelle au logement +description: Montant forfaitaire minimum de la participation minimale « P0 » intervenant sur la participation personnelle du ménage « Pp » prise en compte dans le calcul de l'aide mensuelle au logement values: 2001-01-01: value: 175 @@ -41,8 +41,8 @@ values: 2024-10-01: value: 39.15 metadata: - short_label: Montant minimum de la participation minimale « P0 » - last_value_still_valid_on: "2024-11-12" + short_label: Montant forfaitaire de la participation minimale « P0 » + last_value_still_valid_on: "2025-03-04" label_en: Parameters for the rental sector (after the 2001 reform) ipp_csv_id: plaf_loy_enf1_z2 unit: currency diff --git a/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/al_loc2/montant_proportionnel_participation_minimale_po.yaml b/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/p0_taux.yaml similarity index 75% rename from openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/al_loc2/montant_proportionnel_participation_minimale_po.yaml rename to openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/p0_taux.yaml index 3ad0132567..c72c0a2386 100644 --- a/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/al_loc2/montant_proportionnel_participation_minimale_po.yaml +++ b/openfisca_france/parameters/prestations_sociales/aides_logement/allocations_logement/secteur_locatif/pp_participation_personnelle/p0_participation_minimale/p0_taux.yaml @@ -1,10 +1,10 @@ -description: Montant proportionnel de la participation minimale « P0 » intervenant sur la participation personnelle du ménage « Pp » prise en compte dans le calcul de l'aide mensuelle au logement +description: Taux de la participation minimale « P0 » intervenant sur la participation personnelle du ménage « Pp » prise en compte dans le calcul de l'aide mensuelle au logement values: 2001-01-01: value: 0.085 metadata: - short_label: Montant proportionnel de la participation minimale « P0 » - last_value_still_valid_on: "2023-02-22" + short_label: Taux de la participation minimale « P0 » + last_value_still_valid_on: "2025-03-04" label_en: Parameters for the rental sector (after the 2001 reform) ipp_csv_id: p0_tx unit: /1