From 562c5a7f6efdbe9638549a1962955fee915ac65d Mon Sep 17 00:00:00 2001 From: b-michaud Date: Mon, 9 Dec 2024 11:47:04 +0100 Subject: [PATCH] =?UTF-8?q?Supprime=20les=20termes=20=C3=A0=20z=C3=A9ro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impot_revenu/ir.py | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py b/openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py index 4b3303a473..57d0e18a51 100644 --- a/openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py +++ b/openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py @@ -2329,22 +2329,16 @@ def formula(foyer_fiscal, period, parameters): impots_totaux_avant_imputations = iai + contribution_exceptionnelle_hauts_revenus - prelevement_forfaitaire_unique_ir - prelevement_forfaitaire_liberatoire return ( - (impots_totaux_avant_imputations > parameters_recouvrement.min_avant_credits_impots) * ( - (pre_result < parameters_recouvrement.min_apres_credits_impots) - * (result > 0) - * result - * 0 - + ((pre_result <= 0) + (pre_result >= parameters_recouvrement.min_apres_credits_impots)) - * (- result) - ) - + (impots_totaux_avant_imputations <= parameters_recouvrement.min_avant_credits_impots) * ( - (pre_result < 0) - * (-result) - + (pre_result >= 0) - * 0 - * result - ) + (impots_totaux_avant_imputations > parameters_recouvrement.min_avant_credits_impots) * + (((pre_result <= 0) + (pre_result >= parameters_recouvrement.min_apres_credits_impots)) * + (- result) + ) + + + (impots_totaux_avant_imputations <= parameters_recouvrement.min_avant_credits_impots) * + ((pre_result < 0) * + (-result) ) + ) class foyer_impose(Variable):