OpenFisca-France 168.1.0__py3-none-any.whl → 168.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of OpenFisca-France might be problematic. Click here for more details.

@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 168.1.1 [2351](https://github.com/openfisca/openfisca-france/pull/2351)
4
+
5
+ * Correction d'un crash
6
+ * Périodes concernées : à partir du 01/01/2024
7
+ * Zones impactées : `openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/allegements.py`
8
+ * Détails :
9
+ - Correction du calcul introduit de la version 168.1.0 : la variable `coefficient_de_proratisation` ne doit pas être appelé en décembre 2023 mais au moment du calcul
10
+ - Cette modification a entraîné des modifications de calcul car la variable `coefficient_de_proratisation` ne peut être calculée que pour un mois
11
+
3
12
  ## 168.1.0 [2350](https://github.com/openfisca/openfisca-france/pull/2350)
4
13
 
5
14
  * Évolution du système socio-fiscal.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: OpenFisca-France
3
- Version: 168.1.0
3
+ Version: 168.1.1
4
4
  Summary: French tax and benefit system for OpenFisca
5
5
  Home-page: https://github.com/openfisca/openfisca-france
6
6
  Author: OpenFisca Team
@@ -1,5 +1,5 @@
1
- OpenFisca_France-168.1.0.data/data/share/openfisca/openfisca-france/CHANGELOG.md,sha256=RNoF8-KJ0gwzrW9SBxrX4LmA_A3rPLbWvOrAdMQxP2I,454048
2
- OpenFisca_France-168.1.0.data/data/share/openfisca/openfisca-france/README.md,sha256=nIa6V4zevZpj2DX1rcpgs6AATTerCCy4622S1D3-CDI,18642
1
+ OpenFisca_France-168.1.1.data/data/share/openfisca/openfisca-france/CHANGELOG.md,sha256=4gWqEW8MARYVVHCW7L_miSF7AnSBxFOgZP_JR2G604o,454665
2
+ OpenFisca_France-168.1.1.data/data/share/openfisca/openfisca-france/README.md,sha256=nIa6V4zevZpj2DX1rcpgs6AATTerCCy4622S1D3-CDI,18642
3
3
  openfisca_france/__init__.py,sha256=MHLZ0V8uQHi4lkZ5bPAoLjsWTJe-wJgLfPxFvbCCxHc,126
4
4
  openfisca_france/entities.py,sha256=nGl52ncj9wZzFwASKZk4_OHzhqOUuXGBxNmIiwxZU-c,2576
5
5
  openfisca_france/france_taxbenefitsystem.py,sha256=UHVqvkqqYk-9RanSPWlVy3uieG77GCSrWCOqVpeN30I,1687
@@ -59,7 +59,7 @@ openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/contributi
59
59
  openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/contributions_sociales/remplacement.py,sha256=Kz0rkibtZ5GzgTJvZ8K6PmnHn7Gap4LUU-w8Bj0biYw,30421
60
60
  openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/contributions_sociales/versement_transport.py,sha256=dkD3P0PEMu339ZHi3N7qQ0XIYQh007IFF1g_CMdU954,3542
61
61
  openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
- openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/allegements.py,sha256=5Hyi7rxVJGw6Do2yvpM0qXhbfcb9qKKTZXGLo9Jy4Xg,26554
62
+ openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/allegements.py,sha256=73WoA1N5VyKewDmo2cd7XGAV1crpUQawWMULcmgkLyA,27311
63
63
  openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/apprentissage.py,sha256=eXMAn8G40C2D1pUEs8c7Dj2iL7nvIVd_WCACGzNdrUk,11196
64
64
  openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/base.py,sha256=96NhETcZCaE7jai2T7sf7XnJ7Es9kdHRXKWiwoiSW7Y,13182
65
65
  openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/chomage.py,sha256=BUI1fCE9frrtRvO1cCU3pOMRnWEvNK2m9uxAdZBGQ7A,2219
@@ -1827,8 +1827,8 @@ openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales
1827
1827
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/dispositifs_de_reductions_des_cotisations_famille_1993_1996/index.yaml,sha256=ULnaxKzc1Z5vh6FRuEFa9rsjrzW1EMKZ5byVb8iwLEs,283
1828
1828
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/mmid/index.yaml,sha256=TPELTJWKhUjZDswwuVag8FrZjgHVejuavn4opBI8Lrw,235
1829
1829
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/mmid/plafond.yaml,sha256=QrsZQAbclHdRjIHGJQ-1EtgsE_J79SOOqBzKgaSX1dI,1509
1830
- openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/mmid/plafond_smic_2023_12_31.yaml,sha256=ZYzsNnXAuWlkLLacuTst0t_ryfvZgnvMHEak1aJDmoI,969
1831
- openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/mmid/plafond_smic_courant.yaml,sha256=HyQAaIzBIDAIrR6lZaQr7tdA1x-6PV8iJawTvtVpDL8,957
1830
+ openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/mmid/plafond_smic_2023_12_31.yaml,sha256=RzIMjV-Ja2YDSiGwLHx-oIbcX9HPUsodcE7xECW4vQE,999
1831
+ openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/mmid/plafond_smic_courant.yaml,sha256=MHHdYXeVdwDhdwOMz3qq1rcOw7HOojorl_RT4SLrWA8,987
1832
1832
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/mmid/taux.yaml,sha256=xMG-bxnYAEF3U9Aef4KxTl42zUFoluVrdLpVOzqAtBg,1121
1833
1833
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/ristournes_juppe_i_ii_et_iii_1995_2003/index.yaml,sha256=hXgToB_080tUd8jQKYWm3FHaAuyz70Y9E55Fg0jq1hs,273
1834
1834
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/ristournes_juppe_i_ii_et_iii_1995_2003/plafond_en_nombre_de_smic.yaml,sha256=fjjRKm-PPvmYF8Wd_A3zp7dw_2S0gj4VgMB4t2E1ACU,1667
@@ -1836,8 +1836,8 @@ openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales
1836
1836
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/alleg_gen/ristournes_juppe_i_ii_et_iii_1995_2003/taux_max_au_smic.yaml,sha256=F87cz-E4ex39WFPfQEryVNH_ulQ8evEfqrPdf83fyXE,1255
1837
1837
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/allegement_cotisation_allocations_familiales/index.yaml,sha256=crsMvS-c-Wd_5atOWV9LwQz0OkyBZqNjrl8SQapTijk,313
1838
1838
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/allegement_cotisation_allocations_familiales/plafond_smic.yaml,sha256=eZ78JT4Z8lAvUg0UWcdEsxAU9-QseG5ahV1Awk0WaRw,1303
1839
- openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/allegement_cotisation_allocations_familiales/plafond_smic_2023_12_31.yaml,sha256=K4ow7QEYyU-oPm0NJ1Tnk2bURqMMSc31Xyrbb2nlOc0,992
1840
- openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/allegement_cotisation_allocations_familiales/plafond_smic_courant.yaml,sha256=dJyda3zqBTW04vRzOc8cV_rxMejRP9qnblF8MbVdntU,976
1839
+ openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/allegement_cotisation_allocations_familiales/plafond_smic_2023_12_31.yaml,sha256=qDJx_Xg-GWVGa3VxB8DZ7hJ60nRtsE_5URLDc3AweYU,1022
1840
+ openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/allegement_cotisation_allocations_familiales/plafond_smic_courant.yaml,sha256=XXUs9_T0YPtmwWE45v4n5jagHUlqOpD_pOgmlh-anhE,1006
1841
1841
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/allegement_cotisation_allocations_familiales/reduction.yaml,sha256=KaJu26UlsttIDlA_Eq4WWZgbrn3qYknXFwXmEKf1mds,719
1842
1842
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/allegement_general/index.yaml,sha256=ar_YTMG5-X21G-6lisGXVtBMilOaU8sfw9YY0QskGTs,1586
1843
1843
  openfisca_france/parameters/prelevements_sociaux/reductions_cotisations_sociales/allegement_general/ensemble_des_entreprises/entreprises_de_20_salaries_et_plus.yaml,sha256=VkHr0MyiJ595ibAD75c09lVvZnF9POQ7a6EasL-R6x4,5748
@@ -4029,8 +4029,8 @@ tests/test_parameters.py,sha256=9ByrtcJpaV32qCE-u4FY4fzCugFUW8utc5_KUAmYKG8,354
4029
4029
  tests/test_preprocessing.py,sha256=BBMFR4GlFFqu86XfVcrHRbps_SpoWb1QS1lmu3c5bCE,6973
4030
4030
  tests/test_scenarios.py,sha256=A7SmVt_iyDTbNTE45WgGQlQZkJ0uJ1ZGUhTV3ziwLUw,1009
4031
4031
  tests/test_tax_rates.py,sha256=B_CnSIqCijGYkKW7XVZlF8uot0otNJ-Sq-DKINPATfA,1551
4032
- OpenFisca_France-168.1.0.dist-info/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
4033
- OpenFisca_France-168.1.0.dist-info/METADATA,sha256=E16H-naH0XlgwwVxonh7iQMO4CP5l0WGdCmBSkogo8o,20517
4034
- OpenFisca_France-168.1.0.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
4035
- OpenFisca_France-168.1.0.dist-info/top_level.txt,sha256=hmd7WhmLN_CyB52sP702pN9WlJqO9YMVuzeBRNp3hfs,23
4036
- OpenFisca_France-168.1.0.dist-info/RECORD,,
4032
+ OpenFisca_France-168.1.1.dist-info/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
4033
+ OpenFisca_France-168.1.1.dist-info/METADATA,sha256=j6Prmt2qFqmS951icFuo1G5J0DJ5iB7bFCpf5ofxIQI,20517
4034
+ OpenFisca_France-168.1.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
4035
+ OpenFisca_France-168.1.1.dist-info/top_level.txt,sha256=hmd7WhmLN_CyB52sP702pN9WlJqO9YMVuzeBRNp3hfs,23
4036
+ OpenFisca_France-168.1.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.0.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -342,12 +342,10 @@ def compute_allegement_general(individu, period, parameters):
342
342
  Exonération générale de cotisations patronales
343
343
  https://www.service-public.fr/professionnels-entreprises/vosdroits/F24542
344
344
  '''
345
- # Be careful ! Period is several months
346
- first_month = period.first_month
347
345
 
348
- assiette = individu('assiette_allegement', period, options = [ADD])
349
- smic_proratise = individu('smic_proratise', period, options = [ADD])
350
- effectif_entreprise = individu('effectif_entreprise', first_month)
346
+ assiette = individu('assiette_allegement', period)
347
+ smic_proratise = individu('smic_proratise', period)
348
+ effectif_entreprise = individu('effectif_entreprise', period)
351
349
 
352
350
  # Calcul du taux
353
351
  # Le montant maximum de l’allègement dépend de l’effectif de l’entreprise.
@@ -444,15 +442,20 @@ def compute_allegement_cotisation_allocations_familiales_base(individu, period,
444
442
  '''
445
443
  La réduction du taux de la cotisation d’allocations familiales
446
444
  '''
447
- assiette = individu('assiette_allegement', period, options = [ADD])
448
- smic_proratise = individu('smic_proratise', period, options = [ADD])
445
+ assiette = individu('assiette_allegement', period)
446
+ smic_proratise = individu('smic_proratise', period)
449
447
  law = parameters(period).prelevements_sociaux.reductions_cotisations_sociales.allegement_cotisation_allocations_familiales
450
448
  taux_reduction = law.reduction
451
449
  if period.start.year < 2024:
452
450
  plafond_reduction = law.plafond_smic * smic_proratise
453
451
  else:
454
- smic_proratise_2O23_12_31 = individu('smic_proratise', '2023-12', options = [ADD])
455
- plafond_reduction = max_(law.plafond_smic_courant * smic_proratise, law.plafond_smic_2023_12_31 * smic_proratise_2O23_12_31)
452
+ coefficient_proratisation = individu('coefficient_proratisation', period)
453
+ parameters_smic_2023_12 = parameters('2023-12').marche_travail.salaire_minimum.smic
454
+ smic_horaire_brut_2023_12 = parameters_smic_2023_12.smic_b_horaire
455
+ nbh_travail_2023_12 = parameters_smic_2023_12.nb_heures_travail_mensuel
456
+
457
+ smic_proratise_2O23_12 = coefficient_proratisation * smic_horaire_brut_2023_12 * nbh_travail_2023_12
458
+ plafond_reduction = max_(law.plafond_smic_courant * smic_proratise, law.plafond_smic_2023_12_31 * smic_proratise_2O23_12)
456
459
 
457
460
  # Montant de l'allegment
458
461
  return (assiette < plafond_reduction) * taux_reduction * assiette
@@ -500,13 +503,17 @@ def compute_allegement_cotisation_maladie_base(individu, period, parameters):
500
503
  '''
501
504
  allegement_mmid = parameters(period).prelevements_sociaux.reductions_cotisations_sociales.alleg_gen.mmid
502
505
 
503
- assiette_allegement = individu('assiette_allegement', period, options = [ADD])
504
- smic_proratise = individu('smic_proratise', period, options = [ADD])
506
+ assiette_allegement = individu('assiette_allegement', period)
507
+ smic_proratise = individu('smic_proratise', period)
505
508
  if period.start.year < 2024:
506
509
  plafond_allegement_mmid = allegement_mmid.plafond * smic_proratise
507
510
  else:
508
- smic_proratise_2O23_12_31 = individu('smic_proratise', '2023-12', options = [ADD])
509
- plafond_allegement_mmid = max_(allegement_mmid.plafond_smic_courant * smic_proratise, allegement_mmid.plafond_smic_2023_12_31 * smic_proratise_2O23_12_31)
511
+ coefficient_proratisation = individu('coefficient_proratisation', period)
512
+ parameters_smic_2023_12 = parameters('2023-12').marche_travail.salaire_minimum.smic
513
+ smic_horaire_brut_2023_12 = parameters_smic_2023_12.smic_b_horaire
514
+ nbh_travail_2023_12 = parameters_smic_2023_12.nb_heures_travail_mensuel
515
+ smic_proratise_2O23_12 = coefficient_proratisation * smic_horaire_brut_2023_12 * nbh_travail_2023_12
516
+ plafond_allegement_mmid = max_(allegement_mmid.plafond_smic_courant * smic_proratise, allegement_mmid.plafond_smic_2023_12_31 * smic_proratise_2O23_12)
510
517
 
511
518
  sous_plafond = assiette_allegement <= plafond_allegement_mmid
512
519
  return sous_plafond * allegement_mmid.taux * assiette_allegement
@@ -541,7 +548,10 @@ def compute_allegement_annuel(individu, period, parameters, variable_name, compu
541
548
  if period.start.month < 12:
542
549
  return 0
543
550
  if period.start.month == 12:
544
- return compute_function(individu, period.this_year, parameters)
551
+ return sum(
552
+ compute_function(individu, sub_period, parameters)
553
+ for sub_period in period.this_year.get_subperiods(MONTH)
554
+ )
545
555
 
546
556
 
547
557
  def compute_allegement_anticipe(individu, period, parameters, variable_name, compute_function):
@@ -551,8 +561,9 @@ def compute_allegement_anticipe(individu, period, parameters, variable_name, com
551
561
  cumul = individu(
552
562
  variable_name,
553
563
  Period(('month', period.start.offset('first-of', 'year'), 11)), options = [ADD])
554
- return compute_function(
555
- individu, period.this_year, parameters
564
+ return sum(
565
+ compute_function(individu, sub_period, parameters)
566
+ for sub_period in period.this_year.get_subperiods(MONTH)
556
567
  ) - cumul
557
568
 
558
569
 
@@ -564,7 +575,10 @@ def compute_allegement_progressif(individu, period, parameters, variable_name, c
564
575
  up_to_this_month = Period(('month', period.start.offset('first-of', 'year'), period.start.month))
565
576
  up_to_previous_month = Period(('month', period.start.offset('first-of', 'year'), period.start.month - 1))
566
577
  cumul = individu(variable_name, up_to_previous_month, options = [ADD])
567
- return compute_function(individu, up_to_this_month, parameters) - cumul
578
+ return sum(
579
+ compute_function(individu, sub_period, parameters)
580
+ for sub_period in up_to_this_month.get_subperiods(MONTH)
581
+ ) - cumul
568
582
 
569
583
 
570
584
  def taux_exo_cice(assiette_allegement, smic_proratise, cice):
@@ -3,7 +3,7 @@ values:
3
3
  2024-01-01:
4
4
  value: 2.5
5
5
  metadata:
6
- short_label: 1ère possibilité de plafond de rémunération des salariés | Retenue si > 2ème possibilité
6
+ short_label: 1ère possibilité de plafond de rémunération des salariés (retenue si le montant est supérieur à la 2ème possibilité)
7
7
  last_value_still_valid_on: "2024-09-13"
8
8
  label_en: SSCs for sickness, maternity, disability and death benefits
9
9
  unit: smic_2023_12_31
@@ -4,7 +4,7 @@ values:
4
4
  2024-01-01:
5
5
  value: 2
6
6
  metadata:
7
- short_label: 2ème possibilité de plafond de rémunération des salariés | Retenue si > 1ère possibilité
7
+ short_label: 2ème possibilité de plafond de rémunération des salariés (retenue si le montant est supérieur à la 1ère possibilité)
8
8
  last_value_still_valid_on: "2024-09-13"
9
9
  label_en: SSCs for sickness, maternity, disability and death benefits
10
10
  unit: smic_annuel
@@ -3,7 +3,7 @@ values:
3
3
  2024-01-01:
4
4
  value: 3.5
5
5
  metadata:
6
- short_label: 1ère possibilité de plafond de rémunération des salariés | Retenue si > 2ème possibilité
6
+ short_label: 1ère possibilité de plafond de rémunération des salariés (retenue si le montant est supérieur à la 2ème possibilité)
7
7
  last_value_still_valid_on: "2024-09-13"
8
8
  label_en: Reduction in SSCs for family benefits
9
9
  ipp_csv_id: pss_red_fam
@@ -3,7 +3,7 @@ values:
3
3
  2024-01-01:
4
4
  value: 2
5
5
  metadata:
6
- short_label: 2ème possibilité de plafond de rémunération des salariés | Retenue si > 1ère possibilité
6
+ short_label: 2ème possibilité de plafond de rémunération des salariés (retenue si le montant est supérieur à la 1ère possibilité)
7
7
  last_value_still_valid_on: "2024-09-13"
8
8
  label_en: Reduction in SSCs for family benefits
9
9
  ipp_csv_id: pss_red_fam