From 5d3fa40a4e95740b0a9afc7aa81f28f2b6735bb8 Mon Sep 17 00:00:00 2001 From: b-michaud Date: Wed, 18 Dec 2024 17:10:58 +0100 Subject: [PATCH] inverse le signe du montant de correction --- .../model/prelevements_obligatoires/impot_revenu/ir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py b/openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py index 5b7c1300e8..22f9c64507 100644 --- a/openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py +++ b/openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py @@ -2324,7 +2324,7 @@ def formula(foyer_fiscal, period, parameters): impots_totaux_avant_imputations = iai + cehr - pfu - pfl impots_totaux_apres_imputations = iai + cehr - pfu - pfl - credits_impot - acomptes_ir - montant_correction = iai + cehr - pfu - credits_impot - acomptes_ir + montant_correction = -(iai + cehr - pfu - credits_impot - acomptes_ir) condition_1 = (impots_totaux_avant_imputations > seuil_avant_imputations) * ((impots_totaux_apres_imputations <= 0) + (impots_totaux_apres_imputations >= seuil_apres_imputations)) condition_2 = (impots_totaux_avant_imputations <= seuil_avant_imputations) * (impots_totaux_apres_imputations < 0)