OpenFisca-France 157.0.1__py3-none-any.whl → 157.0.2__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.
- {OpenFisca_France-157.0.1.data → OpenFisca_France-157.0.2.data}/data/share/openfisca/openfisca-france/CHANGELOG.md +14 -0
- {OpenFisca_France-157.0.1.dist-info → OpenFisca_France-157.0.2.dist-info}/METADATA +1 -1
- {OpenFisca_France-157.0.1.dist-info → OpenFisca_France-157.0.2.dist-info}/RECORD +11 -11
- openfisca_france/model/caracteristiques_socio_demographiques/demographie.py +1 -3
- openfisca_france/model/prelevements_obligatoires/impot_revenu/charges_deductibles.py +17 -2
- openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py +19 -6
- openfisca_france/model/revenus/activite/salarie.py +54 -0
- {OpenFisca_France-157.0.1.data → OpenFisca_France-157.0.2.data}/data/share/openfisca/openfisca-france/README.md +0 -0
- {OpenFisca_France-157.0.1.dist-info → OpenFisca_France-157.0.2.dist-info}/LICENSE.AGPL.txt +0 -0
- {OpenFisca_France-157.0.1.dist-info → OpenFisca_France-157.0.2.dist-info}/WHEEL +0 -0
- {OpenFisca_France-157.0.1.dist-info → OpenFisca_France-157.0.2.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 157.0.2 [2250](https://github.com/openfisca/openfisca-france/pull/2250)
|
|
4
|
+
|
|
5
|
+
* Amélioration technique.
|
|
6
|
+
* Périodes concernées : toutes.
|
|
7
|
+
* Zones impactées :
|
|
8
|
+
- `openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py`.
|
|
9
|
+
- `openfisca_france/model/caracteristiques_socio_demographiques/demographie.py`
|
|
10
|
+
- `openfisca_france/model/prelevements_obligatoires/impot_revenu/charges_deductibles.py`
|
|
11
|
+
- `openfisca_france/model/revenus/activite/salarie.py`
|
|
12
|
+
* Détails :
|
|
13
|
+
- Annualise la variable caseT qui est une case de la déclaration annuelle de l'impôt sur le revenu
|
|
14
|
+
- Ajoute des variables de revenus assimilés salaire
|
|
15
|
+
- Ajoute les cases fiscales des nouveau plan d'épargne retraite
|
|
16
|
+
|
|
3
17
|
### 157.0.1 [2249](https://github.com/openfisca/openfisca-france/pull/2249)
|
|
4
18
|
|
|
5
19
|
* Changement mineur.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
OpenFisca_France-157.0.
|
|
2
|
-
OpenFisca_France-157.0.
|
|
1
|
+
OpenFisca_France-157.0.2.data/data/share/openfisca/openfisca-france/CHANGELOG.md,sha256=jK-QV1dFq3lRqIc4qeS1USp4-q7l1KXhOj9ZMJJicJA,418236
|
|
2
|
+
OpenFisca_France-157.0.2.data/data/share/openfisca/openfisca-france/README.md,sha256=1Axy_3j5vJp6nOM5N6mKYkpYlTqmw23LDDajru9j54U,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
|
|
@@ -20,7 +20,7 @@ openfisca_france/model/base.py,sha256=X0cFE7R-6r5JYlAlqaIsD7m61rjHBcUfrYIW61PCFr
|
|
|
20
20
|
openfisca_france/model/mesures.py,sha256=tILWDG-ImZHdlJ_wv3ok2Ucb4V7jw3TT8piHq_E7bSE,32255
|
|
21
21
|
openfisca_france/model/caracteristiques_socio_demographiques/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
openfisca_france/model/caracteristiques_socio_demographiques/capacite_travail.py,sha256=GrCpzWisgPV7fh1RZVj1PIJJM073xPZftS_USiqbFo0,976
|
|
23
|
-
openfisca_france/model/caracteristiques_socio_demographiques/demographie.py,sha256=
|
|
23
|
+
openfisca_france/model/caracteristiques_socio_demographiques/demographie.py,sha256=sJDCGDnOyy3CPMs2bzqDNmzqMnpB0jpjfa_lUEp29JQ,24207
|
|
24
24
|
openfisca_france/model/caracteristiques_socio_demographiques/logement.py,sha256=QedbhSXf7sdZhOCrItx2_HBZ_57XU8X8kd9vfZFlank,9178
|
|
25
25
|
openfisca_france/model/consommation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
openfisca_france/model/covid19/activite.py,sha256=cR8jkVupWjwcLLeJ4qrLQGyhb-Pm9VPojW3JgDaxmM0,4256
|
|
@@ -33,9 +33,9 @@ openfisca_france/model/patrimoine/livret_epargne_populaire.py,sha256=Ty_7mjSA1fL
|
|
|
33
33
|
openfisca_france/model/prelevements_obligatoires/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
openfisca_france/model/prelevements_obligatoires/isf.py,sha256=LbyTx1O4MimTAJVg3O8qNT94VD6QPSYNVFFBMhRJrtg,38326
|
|
35
35
|
openfisca_france/model/prelevements_obligatoires/impot_revenu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
|
-
openfisca_france/model/prelevements_obligatoires/impot_revenu/charges_deductibles.py,sha256=
|
|
36
|
+
openfisca_france/model/prelevements_obligatoires/impot_revenu/charges_deductibles.py,sha256=oDdN2oGhtOVPPaaW8dhROpx538drV4s1E0OwacFL92g,28170
|
|
37
37
|
openfisca_france/model/prelevements_obligatoires/impot_revenu/credits_impot.py,sha256=rmXRgGG_qlTQOiuUHGHHDZxu5Z_KMNIBpQhB4k8osdI,125676
|
|
38
|
-
openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py,sha256=
|
|
38
|
+
openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py,sha256=ihHsCp5o5RMPT_ww_vM82nu3pVEdfgE_iKrYDXTKUhE,177382
|
|
39
39
|
openfisca_france/model/prelevements_obligatoires/impot_revenu/plus_values_immobilieres.py,sha256=5gNB5ntU9I9XVeKhYyq94miM4Uv72HruO1Nu_jIPkn4,4754
|
|
40
40
|
openfisca_france/model/prelevements_obligatoires/impot_revenu/reductions_impot_deplafonnees.py,sha256=CSd3sWx_iar6zqLTN13PTkKGoN2bZka23Ia74f3FheI,34962
|
|
41
41
|
openfisca_france/model/prelevements_obligatoires/impot_revenu/reductions_impot_iom.py,sha256=Q8hoXmUfuQLqzWA0S1CIaP3M7fAVcKtBVkoj3xJiae0,139248
|
|
@@ -133,7 +133,7 @@ openfisca_france/model/revenus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
133
133
|
openfisca_france/model/revenus/autres.py,sha256=LttEzxate9Crynjp3SOlHr-CUGDXEUTjzszzp2U7z_U,5109
|
|
134
134
|
openfisca_france/model/revenus/activite/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
135
135
|
openfisca_france/model/revenus/activite/non_salarie.py,sha256=DchwrxPK-z6dVJrP9HnqEkR4EwtMcRUPc1f4v-J9yF8,67985
|
|
136
|
-
openfisca_france/model/revenus/activite/salarie.py,sha256=
|
|
136
|
+
openfisca_france/model/revenus/activite/salarie.py,sha256=I6tz7p0XGlUmelT4hQmBTRiRrMC2qMVkauCfvGJJwkc,68465
|
|
137
137
|
openfisca_france/model/revenus/capital/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
138
138
|
openfisca_france/model/revenus/capital/financier.py,sha256=GLLYxCO2oCF2byjBSsgbYLa8b5MksS_DFU2d61fIpp0,24673
|
|
139
139
|
openfisca_france/model/revenus/capital/foncier.py,sha256=FlFTItVvqhpH4VadqSVq5Iu80OHksSJofMDyMG4sdKk,4752
|
|
@@ -4078,8 +4078,8 @@ tests/test_parameters.py,sha256=9ByrtcJpaV32qCE-u4FY4fzCugFUW8utc5_KUAmYKG8,354
|
|
|
4078
4078
|
tests/test_preprocessing.py,sha256=yhowIYuzGRLNfG05vS5M0IN1hXmgZPflxJmi1w8-MKw,6973
|
|
4079
4079
|
tests/test_scenarios.py,sha256=A7SmVt_iyDTbNTE45WgGQlQZkJ0uJ1ZGUhTV3ziwLUw,1009
|
|
4080
4080
|
tests/test_tax_rates.py,sha256=B_CnSIqCijGYkKW7XVZlF8uot0otNJ-Sq-DKINPATfA,1551
|
|
4081
|
-
OpenFisca_France-157.0.
|
|
4082
|
-
OpenFisca_France-157.0.
|
|
4083
|
-
OpenFisca_France-157.0.
|
|
4084
|
-
OpenFisca_France-157.0.
|
|
4085
|
-
OpenFisca_France-157.0.
|
|
4081
|
+
OpenFisca_France-157.0.2.dist-info/LICENSE.AGPL.txt,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
4082
|
+
OpenFisca_France-157.0.2.dist-info/METADATA,sha256=0iBPdwISy_SUkmM8dLYOoCwSEC9MQj8v0uQW-wpRBoM,20517
|
|
4083
|
+
OpenFisca_France-157.0.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
4084
|
+
OpenFisca_France-157.0.2.dist-info/top_level.txt,sha256=hmd7WhmLN_CyB52sP702pN9WlJqO9YMVuzeBRNp3hfs,23
|
|
4085
|
+
OpenFisca_France-157.0.2.dist-info/RECORD,,
|
|
@@ -228,9 +228,7 @@ class caseT(Variable):
|
|
|
228
228
|
value_type = bool
|
|
229
229
|
entity = FoyerFiscal
|
|
230
230
|
label = "Vous êtes parent isolé au 1er janvier de l'année de perception des revenus"
|
|
231
|
-
definition_period =
|
|
232
|
-
set_input = set_input_dispatch_by_period
|
|
233
|
-
# TODO: Set definition_period as YEAR and change the suggestion process (scenarios.py)
|
|
231
|
+
definition_period = YEAR
|
|
234
232
|
|
|
235
233
|
|
|
236
234
|
class caseW(Variable):
|
|
@@ -130,6 +130,20 @@ class f6rs(Variable):
|
|
|
130
130
|
definition_period = YEAR
|
|
131
131
|
|
|
132
132
|
|
|
133
|
+
class f6ns(Variable):
|
|
134
|
+
cerfa_field = {
|
|
135
|
+
0: '6NS',
|
|
136
|
+
1: '6NT',
|
|
137
|
+
2: '6NU',
|
|
138
|
+
}
|
|
139
|
+
value_type = int
|
|
140
|
+
unit = 'currency'
|
|
141
|
+
entity = Individu
|
|
142
|
+
label = "Cotisations d'épargne retraite versées au titre d'un PERECO PERIN et PERO"
|
|
143
|
+
# start_date = date(2019,1,1)
|
|
144
|
+
definition_period = YEAR
|
|
145
|
+
|
|
146
|
+
|
|
133
147
|
class f6ss(Variable):
|
|
134
148
|
cerfa_field = {
|
|
135
149
|
0: '6SS',
|
|
@@ -660,14 +674,15 @@ class cd_eparet(Variable):
|
|
|
660
674
|
f6ps_i = foyer_fiscal.members('f6ps', period)
|
|
661
675
|
f6rs_i = foyer_fiscal.members('f6rs', period)
|
|
662
676
|
f6ss_i = foyer_fiscal.members('f6ss', period)
|
|
677
|
+
f6ns_i = foyer_fiscal.members('f6ns', period)
|
|
663
678
|
|
|
664
679
|
# TODO: En théorie, les plafonds de déductions (ps, pt, pu) sont calculés sur
|
|
665
680
|
# le formulaire 2041 GX
|
|
666
681
|
return foyer_fiscal.sum(
|
|
667
682
|
where(
|
|
668
683
|
f6ps_i == 0,
|
|
669
|
-
f6rs_i + f6ss_i,
|
|
670
|
-
min_(f6rs_i + f6ss_i, f6ps_i)
|
|
684
|
+
f6rs_i + f6ss_i + f6ns_i,
|
|
685
|
+
min_(f6rs_i + f6ss_i + f6ns_i, f6ps_i)
|
|
671
686
|
)
|
|
672
687
|
)
|
|
673
688
|
|
|
@@ -389,8 +389,21 @@ class revenu_assimile_salaire(Variable):
|
|
|
389
389
|
chomage_imposable = individu('chomage_imposable', period, options = [ADD])
|
|
390
390
|
f1tt = individu('f1tt', period)
|
|
391
391
|
f3vj = individu('f3vj', period)
|
|
392
|
+
salaires_imposable_particulier_employeur = individu('salaires_imposable_particulier_employeur', period)
|
|
393
|
+
revenus_imposables_associes_gerants = individu('revenus_imposables_associes_gerants', period)
|
|
394
|
+
droits_auteurs_imposables = individu('droits_auteurs_imposables', period)
|
|
395
|
+
salaire_imposable_agents_assurance = individu('salaire_imposable_agents_assurance', period)
|
|
392
396
|
|
|
393
|
-
return
|
|
397
|
+
return (
|
|
398
|
+
salaire_imposable
|
|
399
|
+
+ chomage_imposable
|
|
400
|
+
+ f1tt
|
|
401
|
+
+ f3vj
|
|
402
|
+
+ salaires_imposable_particulier_employeur
|
|
403
|
+
+ revenus_imposables_associes_gerants
|
|
404
|
+
+ droits_auteurs_imposables
|
|
405
|
+
+ salaire_imposable_agents_assurance
|
|
406
|
+
)
|
|
394
407
|
|
|
395
408
|
|
|
396
409
|
class revenu_assimile_salaire_apres_abattements(Variable):
|
|
@@ -1355,7 +1368,7 @@ class ir_plaf_qf(Variable):
|
|
|
1355
1368
|
caseN = foyer_fiscal('caseN', period)
|
|
1356
1369
|
caseP = foyer_fiscal('caseP', period)
|
|
1357
1370
|
caseS = foyer_fiscal('caseS', period)
|
|
1358
|
-
caseT = foyer_fiscal('caseT', period
|
|
1371
|
+
caseT = foyer_fiscal('caseT', period)
|
|
1359
1372
|
caseW = foyer_fiscal('caseW', period)
|
|
1360
1373
|
nbF = foyer_fiscal('nbF', period)
|
|
1361
1374
|
nbG = foyer_fiscal('nbG', period)
|
|
@@ -1444,7 +1457,7 @@ class ir_plaf_qf(Variable):
|
|
|
1444
1457
|
caseL = foyer_fiscal('caseL', period)
|
|
1445
1458
|
caseP = foyer_fiscal('caseP', period)
|
|
1446
1459
|
caseS = foyer_fiscal('caseS', period)
|
|
1447
|
-
caseT = foyer_fiscal('caseT', period
|
|
1460
|
+
caseT = foyer_fiscal('caseT', period)
|
|
1448
1461
|
caseW = foyer_fiscal('caseW', period)
|
|
1449
1462
|
nbF = foyer_fiscal('nbF', period) # noqa F841
|
|
1450
1463
|
nbG = foyer_fiscal('nbG', period)
|
|
@@ -3581,7 +3594,7 @@ class nbptr(Variable):
|
|
|
3581
3594
|
caseF = foyer_fiscal('caseF', period)
|
|
3582
3595
|
caseS = foyer_fiscal('caseS', period)
|
|
3583
3596
|
caseL = foyer_fiscal('caseL', period)
|
|
3584
|
-
caseT = foyer_fiscal('caseT', period
|
|
3597
|
+
caseT = foyer_fiscal('caseT', period)
|
|
3585
3598
|
quotient_familial = parameters(period).impot_revenu.calcul_impot_revenu.plaf_qf.quotient_familial
|
|
3586
3599
|
|
|
3587
3600
|
no_pac = nb_pac == 0 # Aucune personne à charge en garde exclusive
|
|
@@ -3693,7 +3706,7 @@ class nbptr(Variable):
|
|
|
3693
3706
|
caseF = foyer_fiscal('caseF', period)
|
|
3694
3707
|
caseS = foyer_fiscal('caseS', period)
|
|
3695
3708
|
caseL = foyer_fiscal('caseL', period)
|
|
3696
|
-
caseT = foyer_fiscal('caseT', period
|
|
3709
|
+
caseT = foyer_fiscal('caseT', period)
|
|
3697
3710
|
quotient_familial = parameters(period).impot_revenu.calcul_impot_revenu.plaf_qf.quotient_familial
|
|
3698
3711
|
|
|
3699
3712
|
no_pac = nb_pac == 0 # Aucune personne à charge en garde exclusive
|
|
@@ -3908,7 +3921,7 @@ class ppe_brute(Variable):
|
|
|
3908
3921
|
maries_ou_pacses = foyer_fiscal('maries_ou_pacses', period)
|
|
3909
3922
|
celibataire_ou_divorce = foyer_fiscal('celibataire_ou_divorce', period)
|
|
3910
3923
|
veuf = foyer_fiscal('veuf', period)
|
|
3911
|
-
caseT = foyer_fiscal('caseT', period
|
|
3924
|
+
caseT = foyer_fiscal('caseT', period)
|
|
3912
3925
|
caseL = foyer_fiscal('caseL', period)
|
|
3913
3926
|
nbH = foyer_fiscal('nbH', period)
|
|
3914
3927
|
ppe = parameters(period).impot_revenu.credits_impots.ppe
|
|
@@ -1652,3 +1652,57 @@ class travailleur_occasionnel_agricole(Variable):
|
|
|
1652
1652
|
+ (taches_salarie_type == TypesTaches.travaux_forestiers)
|
|
1653
1653
|
)
|
|
1654
1654
|
return secteur_agricole * cdd * cdd_occasionnel_agricole * taches_eligibles
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
class salaires_imposable_particulier_employeur(Variable):
|
|
1658
|
+
cerfa_field = {
|
|
1659
|
+
0: '1AA',
|
|
1660
|
+
1: '1BA',
|
|
1661
|
+
2: '1CA',
|
|
1662
|
+
3: '1DA',
|
|
1663
|
+
}
|
|
1664
|
+
value_type = int
|
|
1665
|
+
unit = 'currency'
|
|
1666
|
+
entity = Individu
|
|
1667
|
+
label = 'Revenus des salariés des particuliers employeurs'
|
|
1668
|
+
definition_period = YEAR
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
class revenus_imposables_associes_gerants(Variable):
|
|
1672
|
+
cerfa_field = {
|
|
1673
|
+
0: '1GB',
|
|
1674
|
+
1: '1HB',
|
|
1675
|
+
2: '1IB',
|
|
1676
|
+
3: '1JB',
|
|
1677
|
+
}
|
|
1678
|
+
value_type = int
|
|
1679
|
+
unit = 'currency'
|
|
1680
|
+
entity = Individu
|
|
1681
|
+
label = 'Revenus des associes et gerants'
|
|
1682
|
+
definition_period = YEAR
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
class droits_auteurs_imposables(Variable):
|
|
1686
|
+
cerfa_field = {
|
|
1687
|
+
0: '1GF',
|
|
1688
|
+
1: '1HF',
|
|
1689
|
+
2: '1IF',
|
|
1690
|
+
3: '1JF',
|
|
1691
|
+
}
|
|
1692
|
+
value_type = int
|
|
1693
|
+
unit = 'currency'
|
|
1694
|
+
entity = Individu
|
|
1695
|
+
label = 'Droits d auteurs fonctionnaires chercheurs'
|
|
1696
|
+
definition_period = YEAR
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
class salaire_imposable_agents_assurance(Variable):
|
|
1700
|
+
cerfa_field = {
|
|
1701
|
+
0: '1GG',
|
|
1702
|
+
1: '1HG',
|
|
1703
|
+
}
|
|
1704
|
+
value_type = int
|
|
1705
|
+
unit = 'currency'
|
|
1706
|
+
entity = Individu
|
|
1707
|
+
label = 'Agents generaux d assurance - salaire imposable'
|
|
1708
|
+
definition_period = YEAR
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|