Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
b-michaud committed Mar 4, 2025
1 parent 3e7c412 commit c37c5f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openfisca_france/model/prestations/aides_logement.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,14 +1145,14 @@ def formula(famille, period, parameters):
forfait_charges = parameters(period).prestations_sociales.aides_logement.allocations_logement.secteur_locatif.c_forfait_charges
forfait_charges_cas_general = forfait_charges.cas_general
forfait_charges_cas_colocataires = forfait_charges.cas_colocataires

couple = famille('al_couple', period)
coloc = famille.demandeur.menage('coloc', period)
al_nb_pac = famille('al_nb_personnes_a_charge', period)

montant_cas_general = forfait_charges_cas_general.cas_general + al_nb_pac * forfait_charges_cas_general.majoration_par_enfant

montant_coloc = where(couple, forfait_charges_cas_colocataires.couple_sans_enfant, forfait_charges_cas_colocataires.beneficiaire_isole) + al_nb_pac * forfait_charges_cas_colocataires.majoration_par_enfant
montant_coloc = where(couple, forfait_charges_cas_colocataires.couple_sans_enfant, forfait_charges_cas_colocataires.beneficiaire_isole) + al_nb_pac * forfait_charges_cas_colocataires.majoration_par_enfant

return where(coloc, montant_coloc, montant_cas_general)

Expand Down

0 comments on commit c37c5f8

Please sign in to comment.