Skip to content

Commit

Permalink
Add CSS, pert d'emploi
Browse files Browse the repository at this point in the history
  • Loading branch information
benjello committed Dec 18, 2024
1 parent 0826d49 commit 14265a4
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
description: Contribution sociale de solidarité (barème salarié)
brackets:
- rate:
2025-01-01:
value: 0.005
2018-01-01:
value: 0.01
threshold:
Expand All @@ -10,10 +12,14 @@ metadata:
rate_unit: /1
threshold_unit: currency
reference:
2025-01-01:
- title: Loi 2024-48 du 9 décembre 2024 portant loi de finances pour 2025
href: https://facture-tunisie.com/411/fr/38/reglementations/principales-dispositions-du-projet-de-la-loi-de-finances-2025
2018-01-01:
- title: Article 53 de la loi n° 2017-66 du 18 décembre 2017, portant loi de finances pour l’année 2018
href: https://jibaya.tn/docs/loi-n-2017-66-du-18-decembre-2017-portant-loi-de-finances-pour-lannee-2018/
- title: Note commune 2018/01
href: https://jibaya.tn/docs/note-commune-numero-1-commentaire-des-dispositions-de-larticle-53-de-la-loi-n-2017-66-du-18-decembre-2017-portant-loi-de-finances-pour-lannee-2018-relatives-a-lins-2/
official_journal_date:
2025-01-01: '2024-12-10'
2018-01-01: "2017-12-19"
Original file line number Diff line number Diff line change
@@ -1 +1 @@
description: Patronales
description: Cotisations patronales
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: Cotisation employeur pour financer le fonds de gestion de perte d'emploi
brackets:
- threshold:
2025-01-01:
value: 0
rate:
2025-01-01:
value: 0.005
metadata:
short_label: Perte d'emploi
rate_unit: /1
threshold_unit: currency
reference:
2025-01-01:
- title: Loi 2024-48 du 9 décembre 2024 portant loi de finances pour 2025
href: https://facture-tunisie.com/411/fr/38/reglementations/principales-dispositions-du-projet-de-la-loi-de-finances-2025
official_journal_date:
2025-01-01: '2024-12-10'
Original file line number Diff line number Diff line change
@@ -1 +1 @@
description: Salariales
description: Cotisations salariales
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: Cotisation employeur pour financer le fonds de gestion de perte d'emploi
brackets:
- threshold:
2025-01-01:
value: 0
rate:
2025-01-01:
value: 0.005
metadata:
short_label: Perte d'emploi
rate_unit: /1
threshold_unit: currency
reference:
2025-01-01:
- title: Loi 2024-48 du 9 décembre 2024 portant loi de finances pour 2025
href: https://facture-tunisie.com/411/fr/38/reglementations/principales-dispositions-du-projet-de-la-loi-de-finances-2025
official_journal_date:
2025-01-01: '2024-12-10'
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ class revenus_fonciers(Variable):

def formula(foyer_fiscal, period):
foncier_reel_resultat_fiscal = foyer_fiscal.declarant_principal('foncier_reel_resultat_fiscal', period = period)
fon_forf_bati = foyer_fiscal('fon_forf_bati', period = period)
fon_forf_nbat = foyer_fiscal('fon_forf_nbat', period = period)
foncier_forfait_bati_resultat_fiscal = foyer_fiscal('foncier_forfait_bati_resultat_fiscal', period = period)
foncier_forfait_non_bati_resultat_fiscal = foyer_fiscal('foncier_forfait_non_bati_resultat_fiscal', period = period)
foncier_societes_personnes = foyer_fiscal.declarant_principal('foncier_societes_personnes', period = period)

return foncier_reel_resultat_fiscal + fon_forf_bati + fon_forf_nbat + foncier_societes_personnes
return foncier_reel_resultat_fiscal + foncier_forfait_bati_resultat_fiscal + foncier_forfait_non_bati_resultat_fiscal + foncier_societes_personnes


class fon_forf_bati(Variable):
class foncier_forfait_bati_resultat_fiscal(Variable):
value_type = float
entity = FoyerFiscal
label = 'Revenus fonciers net des immeubles bâtis'
Expand All @@ -43,7 +43,7 @@ def formula(foyer_fiscal, period, parameters):
)


class fon_forf_nbat(Variable):
class foncier_forfait_non_bati_resultat_fiscal(Variable):
value_type = float
entity = FoyerFiscal
label = 'Revenus fonciers net des terrains non bâtis'
Expand Down
39 changes: 37 additions & 2 deletions openfisca_tunisia/variables/revenus/remplacement/retraite.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,57 @@
from openfisca_tunisia.variables.base import *


# Pensions de retraite
# Pensions

class pension(Variable):

class pension_de_retraite(Variable):
value_type = float
label = 'Pension'
entity = Individu
definition_period = MONTH
set_input = set_input_divide_by_period


class pension_orphelin(Variable):
value_type = float
label = 'Pension'
entity = Individu
definition_period = MONTH
set_input = set_input_divide_by_period


class pension_d_invalidite(Variable):
value_type = float
label = 'Pension'
entity = Individu
definition_period = MONTH
set_input = set_input_divide_by_period


class pension(Variable):
value_type = float
label = 'Pension'
entity = Individu
definition_period = YEAR
set_input = set_input_divide_by_period

def formula(individu, period):
return (
individu('pension_de_retraite', period, options = [ADD])
+ individu('pension_d_invalidite', period, options = [ADD])
+ individu('pension_orphelin', period, options = [ADD])
)


class revenu_assimile_pension(Variable):
value_type = float
label = 'Revenus assimilés à des pensions (pensions et rentes viagères)'
entity = Individu
definition_period = YEAR

def formula_2025_01(individu, period):
return individu('pension_de_retraite', period, options = [ADD])

def formula(individu, period):
return individu('pension', period, options = [ADD])

Expand Down

0 comments on commit 14265a4

Please sign in to comment.