diff --git a/openfisca_france_local/communes/antony/base_ressources.py b/openfisca_france_local/communes/antony/base_ressources.py index c723dbe4..c883221d 100644 --- a/openfisca_france_local/communes/antony/base_ressources.py +++ b/openfisca_france_local/communes/antony/base_ressources.py @@ -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