diff --git a/CHANGELOG.md b/CHANGELOG.md index ca17432a0c..b780c84da4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog + +## 13.1.5 + +* Fix 2017 rates and test them: + - réduction générale sur les bas salaires (fillon) had a minor difference (we used the 2016 provisionnal value) + - maladie MMID employeur had not been updated + ## 13.1.4 * Fix AGS value in cotsoc.xml. v10.0.1's fix was ineffective. diff --git a/openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/allegements.py b/openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/allegements.py index 3b6737663d..18bac81873 100644 --- a/openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/allegements.py +++ b/openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/allegements.py @@ -301,6 +301,7 @@ class allegement_fillon(DatedVariable): column = FloatCol entity = Individu label = u"Allègement de charges employeur sur les bas et moyens salaires (dit allègement Fillon)" + url = u"https://www.service-public.fr/professionnels-entreprises/vosdroits/F24542" # Attention : cet allègement a des règles de cumul spécifiques @@ -327,7 +328,7 @@ def function(self, simulation, period): def compute_allegement_fillon(simulation, period): """ Exonération Fillon - http://www.securite-sociale.fr/comprendre/dossiers/exocotisations/exoenvigueur/fillon.htm + https://www.service-public.fr/professionnels-entreprises/vosdroits/F24542 """ assiette = simulation.calculate_add('assiette_allegement', period) smic_proratise = simulation.calculate_add('smic_proratise', period) diff --git a/openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/travail_prive.py b/openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/travail_prive.py index c9964c3d9a..d9a1f18afc 100644 --- a/openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/travail_prive.py +++ b/openfisca_france/model/prelevements_obligatoires/prelevements_sociaux/cotisations_sociales/travail_prive.py @@ -587,6 +587,7 @@ class mmid_employeur(Variable): column = FloatCol entity = Individu label = u"Cotisation maladie (employeur)" + url = u"https://www.urssaf.fr/portail/home/employeur/calculer-les-cotisations/les-taux-de-cotisations/la-cotisation-maladie---maternit.html" def function(self, simulation, period): period = period.start.period(u'month').offset('first-of') diff --git a/openfisca_france/param/param.xml b/openfisca_france/param/param.xml index d6cdb22db2..096018409a 100644 --- a/openfisca_france/param/param.xml +++ b/openfisca_france/param/param.xml @@ -939,15 +939,15 @@ - - + + - - + + @@ -1579,7 +1579,7 @@ - + diff --git a/openfisca_france/parameters/cotsoc.xml b/openfisca_france/parameters/cotsoc.xml index 3f6b53be0d..27fdcc2b43 100644 --- a/openfisca_france/parameters/cotsoc.xml +++ b/openfisca_france/parameters/cotsoc.xml @@ -738,7 +738,7 @@ - + diff --git a/openfisca_france/parameters/prelevements_sociaux.xml b/openfisca_france/parameters/prelevements_sociaux.xml index 19dfb4d2c3..3ff6033bcf 100644 --- a/openfisca_france/parameters/prelevements_sociaux.xml +++ b/openfisca_france/parameters/prelevements_sociaux.xml @@ -2215,7 +2215,8 @@ - + + @@ -2529,13 +2530,13 @@ - + - + diff --git a/openfisca_france/tests/formulas/maladie_mmid_employeur.yaml b/openfisca_france/tests/formulas/maladie_mmid_employeur.yaml new file mode 100644 index 0000000000..1d2c0c6db6 --- /dev/null +++ b/openfisca_france/tests/formulas/maladie_mmid_employeur.yaml @@ -0,0 +1,8 @@ +- period: "2017-02" + name: + Cotisation maladie MMID employeur + relative_error_margin: 0.001 + input_variables: + salaire_de_base: 2300 + output_variables: + mmid_employeur: -.1289 * 2300 diff --git a/openfisca_france/tests/formulas/reduction_generale-fillon.yaml b/openfisca_france/tests/formulas/reduction_generale-fillon.yaml new file mode 100644 index 0000000000..0c22c533b7 --- /dev/null +++ b/openfisca_france/tests/formulas/reduction_generale-fillon.yaml @@ -0,0 +1,15 @@ +- period: "2017-01" + name: Base + relative_error_margin: 0.001 + input_variables: + allegement_fillon_mode_recouvrement: 1 + effectif_entreprise: 1 + salaire_de_base: 1500 + output_variables: + allegement_fillon: > + 1500 * + ( + (.2809 / .6) + * + (1.6 * ( 17763.20 / (1500 * 12)) - 1) + ) diff --git a/setup.py b/setup.py index 69671707ac..e55fdd5982 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name = 'OpenFisca-France', - version = '13.1.4', + version = '13.1.5', author = 'OpenFisca Team', author_email = 'contact@openfisca.fr', classifiers = [