From 54311ed3061fc532005a8ae3d6f8ac08bfad4112 Mon Sep 17 00:00:00 2001 From: Mahdi Ben Jelloul Date: Wed, 26 Feb 2020 09:02:06 +0100 Subject: [PATCH] fix period year condition --- .../contribution_sociale_solidarite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openfisca_tunisia/variables/prelevements_obligatoires/contribution_sociale_solidarite.py b/openfisca_tunisia/variables/prelevements_obligatoires/contribution_sociale_solidarite.py index 98495bf0..2f789f7e 100644 --- a/openfisca_tunisia/variables/prelevements_obligatoires/contribution_sociale_solidarite.py +++ b/openfisca_tunisia/variables/prelevements_obligatoires/contribution_sociale_solidarite.py @@ -40,7 +40,7 @@ def formula_2018_01_01(individu, period, parameters): bareme_css = parameters(period.start).prelevements_sociaux.contribution_sociale_solidarite.salarie bareme_irpp.add_tax_scale(bareme_css) - if period.year >= 2020: + if period.start.year >= 2020: non_exonere_css = ( (12 * revenu_assimile_salaire_apres_abattement - deduction_famille_annuelle) > parameters(period.start).impot_revenu.exoneration.seuil