Skip to content

Commit

Permalink
Ajoute une condition a la comparaison des ressources M-1 à m-3 et N-1
Browse files Browse the repository at this point in the history
  • Loading branch information
frtomas authored and Shamzic committed Nov 6, 2024
1 parent a2b4ab2 commit 9fa65f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openfisca_france_local/communes/antony/base_ressources.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ def formula(famille, period, parameters):
+ (ressources_mensuelles_famille_n_1 / 4)
+ (ressources_annuelles_famille_n_1 / 4)
)

ressources_considerees = min_(ressources_m_3, ressources_n_1)
# on ne compare les ressources recentes avec le N-1
# que si on a effectivement des ressources N-1
ressources_considerees = where(ressources_n_1 > 0, min_(ressources_m_3, ressources_n_1), ressources_m_3)

return ressources_considerees

Expand Down

0 comments on commit 9fa65f1

Please sign in to comment.