Skip to content

Commit

Permalink
déplace les plafonds de loyer et coef chambre et coloc (secteur locatif)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-michaud committed Mar 4, 2025
1 parent 14d8901 commit b1789bb
Show file tree
Hide file tree
Showing 21 changed files with 43 additions and 30 deletions.
13 changes: 7 additions & 6 deletions openfisca_france/model/prestations/aides_logement.py
Original file line number Diff line number Diff line change
Expand Up @@ -1077,20 +1077,21 @@ def formula(famille, period, parameters):
chambre = famille.demandeur.menage('logement_chambre', period)
zone_apl = famille.demandeur.menage('zone_apl', period)

al_loc2 = al.al_loc2.plafonds_loyer[zone_apl]
plafonds_loyers = al.secteur_locatif.L_plafonds_loyers[zone_apl]
coeff_chambre_coloc = plafonds_loyers.chambre_et_colocation

plafond_personne_seule = al_loc2.personnes_seules
plafond_couple = al_loc2.couples
plafond_famille = al_loc2.un_enfant + (al_nb_pac > 1) * (al_nb_pac - 1) * al_loc2.majoration_par_enf_supp
plafond_personne_seule = plafonds_loyers.personnes_seules
plafond_couple = plafonds_loyers.couples
plafond_famille = plafonds_loyers.un_enfant + (al_nb_pac > 1) * (al_nb_pac - 1) * plafonds_loyers.majoration_par_enf_supp

plafond = select(
[not_(couple) * (al_nb_pac == 0) + chambre, al_nb_pac > 0],
[plafond_personne_seule, plafond_famille],
default = plafond_couple
)

coeff_coloc = where(coloc, al.al_loc2.colocation, 1)
coeff_chambre = where(chambre, al.al_loc2.chambre, 1)
coeff_coloc = where(coloc, al.plafonds_loyers.coef_colocation, 1)
coeff_chambre = where(chambre, al.plafonds_loyers.coef_chambre, 1)

return round_(plafond * coeff_coloc * coeff_chambre, 2)

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Coefficient appliqué aux loyers plafonds de location pour une personne isolée dans le cas où le logement occupé est une chambre
values:
2002-01-01:
value: 0.9
metadata:
short_label: Coefficient plafonds de loyer (chambre)
last_value_still_valid_on: "2025-03-04"
unit: /1
reference:
2002-01-01:
- title: Arrêté du 27 septembre 2019, art. 8
href: https://www.legifrance.gouv.fr/loda/article_lc/LEGIARTI000050286643/2024-09-29
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Coefficient appliqué aux loyers plafonds de location dans le cas des colocataires
values:
2002-01-01:
value: 0.75
metadata:
short_label: Coefficient plafonds de loyer (colocation)
last_value_still_valid_on: "2025-03-04"
unit: /1
reference:
2002-01-01:
- title: Arrêté du 27 septembre 2019, art. 16 1°
href: https://www.legifrance.gouv.fr/loda/article_lc/LEGIARTI000050286643/2024-09-29
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 397.64
metadata:
short_label: Couple sans personne à charge
last_value_still_valid_on: "2024-07-11"
last_value_still_valid_on: "2025-03-04"
label_en: Parameters for the rental sector (after the 2001 reform)
ipp_csv_id: plaf_loy_coup_z1
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 65.21
metadata:
short_label: Par enfant supplémentaire
last_value_still_valid_on: "2024-07-11"
last_value_still_valid_on: "2025-03-04"
label_en: Parameters for the rental sector (after the 2001 reform)
ipp_csv_id: plaf_loy_enfsupp_z1
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 329.71
metadata:
short_label: Personne seule
last_value_still_valid_on: "2024-07-11"
last_value_still_valid_on: "2025-03-04"
label_en: Parameters for the rental sector (after the 2001 reform)
ipp_csv_id: plaf_loy_isol_z1
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 449.43
metadata:
short_label: Personne seule ou un couple avec un enfant à charge
last_value_still_valid_on: "2024-07-11"
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_z1
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 351.72
metadata:
short_label: Couple sans personne à charge
last_value_still_valid_on: "2024-11-07"
last_value_still_valid_on: "2025-03-04"
label_en: Parameters for the rental sector (after the 2001 reform)
ipp_csv_id: plaf_loy_coup_z2
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 57.61
metadata:
short_label: Par enfant supplémentaire
last_value_still_valid_on: "2024-10-08"
last_value_still_valid_on: "2025-03-04"
label_en: Parameters for the rental sector (after the 2001 reform)
ipp_csv_id: plaf_loy_enfsupp_z2
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 287.35
metadata:
short_label: Personne seule
last_value_still_valid_on: "2024-11-07"
last_value_still_valid_on: "2025-03-04"
label_en: Parameters for the rental sector (after the 2001 reform)
ipp_csv_id: plaf_loy_isol_z2
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 395.77
metadata:
short_label: Personne seule ou un couple avec un enfant à charge
last_value_still_valid_on: "2023-02-20"
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 326.48
metadata:
short_label: Couple sans personne à charge
last_value_still_valid_on: "2023-02-20"
last_value_still_valid_on: "2025-03-04"
label_en: Parameters for the rental sector (after the 2001 reform)
ipp_csv_id: plaf_loy_coup_z3
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 52.47
metadata:
short_label: Par enfant supplémentaire
last_value_still_valid_on: "2023-02-20"
last_value_still_valid_on: "2025-03-04"
label_en: Parameters for the rental sector (after the 2001 reform)
ipp_csv_id: plaf_loy_enfsupp_z3
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 269.32
metadata:
short_label: Personne seule
last_value_still_valid_on: "2023-02-20"
last_value_still_valid_on: "2025-03-04"
label_en: Parameters for the rental sector (after the 2001 reform)
ipp_csv_id: plaf_loy_isol_z3
unit: currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ values:
value: 366.07
metadata:
short_label: Personne seule ou un couple avec un enfant à charge
last_value_still_valid_on: "2023-02-20"
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_z3
unit: currency
Expand Down

0 comments on commit b1789bb

Please sign in to comment.