{"action":"created","comment":{"url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/comments/200299549","pull_request_review_id":134585649,"id":200299549,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDI5OTU0OQ==","diff_hunk":"@@ -2637,22 +3205,28 @@ def formula_2012_01_01(foyer_fiscal, period, parameters):\n         f7uw = foyer_fiscal('f7uw', period)\n         P = parameters(period).impot_revenu.reductions_impots.invfor\n \n-        max0 = max_(0, P.ifortra_seuil * (maries_ou_pacses + 1) - f7ul)\n-        max1 = max_(0, max0 - f7uu - f7te - f7uv - f7tf)\n-        max2 = max_(0, max1 - f7tg - f7uw)\n+        report_depenses_2009 = f7uu + f7te\n+        report_depenses_2010 = f7uv + f7tf\n+        report_depenses_2011 = f7uw + f7tg\n+\n+        max0 = max_(0, P.plafond_travaux * (maries_ou_pacses + 1) - f7ul)","path":"openfisca_france/model/prelevements_obligatoires/impot_revenu/reductions_impot.py","position":1240,"original_position":1190,"commit_id":"ab69b350c9b0a4cee77500c01edcf731f2fd9bbe","original_commit_id":"fa42f8472f6fac397192cd52fa2689cf3e880100","user":{"login":"Anna-Livia","id":13916213,"node_id":"MDQ6VXNlcjEzOTE2MjEz","avatar_url":"https://avatars0.githubusercontent.com/u/13916213?v=4","gravatar_id":"","url":"https://api.github.com/users/Anna-Livia","html_url":"https://github.com/Anna-Livia","followers_url":"https://api.github.com/users/Anna-Livia/followers","following_url":"https://api.github.com/users/Anna-Livia/following{/other_user}","gists_url":"https://api.github.com/users/Anna-Livia/gists{/gist_id}","starred_url":"https://api.github.com/users/Anna-Livia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anna-Livia/subscriptions","organizations_url":"https://api.github.com/users/Anna-Livia/orgs","repos_url":"https://api.github.com/users/Anna-Livia/repos","events_url":"https://api.github.com/users/Anna-Livia/events{/privacy}","received_events_url":"https://api.github.com/users/Anna-Livia/received_events","type":"User","site_admin":false},"body":"Oki :)","created_at":"2018-07-05T10:05:57Z","updated_at":"2018-07-05T10:05:57Z","html_url":"https://github.com/openfisca/openfisca-france/pull/1018#discussion_r200299549","pull_request_url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1018","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/comments/200299549"},"html":{"href":"https://github.com/openfisca/openfisca-france/pull/1018#discussion_r200299549"},"pull_request":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1018"}},"in_reply_to_id":200265872},"pull_request":{"url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1018","id":197408103,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3NDA4MTAz","html_url":"https://github.com/openfisca/openfisca-france/pull/1018","diff_url":"https://github.com/openfisca/openfisca-france/pull/1018.diff","patch_url":"https://github.com/openfisca/openfisca-france/pull/1018.patch","issue_url":"https://api.github.com/repos/openfisca/openfisca-france/issues/1018","number":1018,"state":"open","locked":false,"title":"Update de l'impôt sur les revenus 2017","user":{"login":"ClaireLeroyIPP","id":31621856,"node_id":"MDQ6VXNlcjMxNjIxODU2","avatar_url":"https://avatars3.githubusercontent.com/u/31621856?v=4","gravatar_id":"","url":"https://api.github.com/users/ClaireLeroyIPP","html_url":"https://github.com/ClaireLeroyIPP","followers_url":"https://api.github.com/users/ClaireLeroyIPP/followers","following_url":"https://api.github.com/users/ClaireLeroyIPP/following{/other_user}","gists_url":"https://api.github.com/users/ClaireLeroyIPP/gists{/gist_id}","starred_url":"https://api.github.com/users/ClaireLeroyIPP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClaireLeroyIPP/subscriptions","organizations_url":"https://api.github.com/users/ClaireLeroyIPP/orgs","repos_url":"https://api.github.com/users/ClaireLeroyIPP/repos","events_url":"https://api.github.com/users/ClaireLeroyIPP/events{/privacy}","received_events_url":"https://api.github.com/users/ClaireLeroyIPP/received_events","type":"User","site_admin":false},"body":"Mise à jour des dispositifs de l'impôt pour les revenus 2017.\r\n\r\nLes modifications reprennent pour l'essentiel les nouveautés de l'IR 2018 sur revenus 2017 listées dans la [brochure pratique](https://www.impots.gouv.fr/portail/www2/fichiers/documentation/brochure/ir_2018/files/assets/common/downloads/Brochure%20IR%202018.pdf) page 35.  Cette PR inclut aussi des modifications sur la CSG et la CRDS.\r\n\r\nCette PR est liée à la PR #1017 qui se concentrait sur la partie paramètres de l'impôt sans modifier les formules. \r\n\r\n* Évolution du système socio-fiscal.\r\n* Périodes concernées : à partir du 01/01/2017 essentiellement.\r\n* Zones impactées : \r\n  - `model\\prelevements_obligatoires\\impot_revenu`\r\n  - `parameters\\impot_revenu`\r\n  - `parameters\\prelevements_sociaux\\contributions`\r\n* Détails :\r\n  - Update des formules de crédits et réductions dont la formule varie  (*\"cappme\", \"doment\", \"domlog\", \"domsoc\", \"quaenv\", \"invfor\", \"invlst\", \"patnat\", \"inthab\", \"rpinel\", \"duflot\", \"locmeu\", \"resimm\"*). En général car il y a ajout ou retrait de cases (ex: report de N-1, investissement en N ...).\r\n  - Diminution des taux de taxation des plus-values des non salariés\r\n  - Conversion de la réduction d'impôt pour emploi d'un salarié à domicile en crédit d'impôt, même pour les inactifs\r\n  - Ajout d'un taux majoré de réduction pour investissements dans les SOFICA\r\n  - Réduction du taux de réduction pour souscription au capital d'une FCPI en outre-mer\r\n  - Augmentation du taux de CSG sur les revenus du patrimoine (ainsi que du taux de CSG déductible)\r\n  - Ajout de la nouvelle réduction d'impôt pour dépenses de réhabilitation de résidences de tourisme entre 2017 et 2019 (variable *\"rehab\"*)\r\n  - Correction et update de la formule de la réduction *\"domsoc\"* pour 2013-2016\r\n  \r\n\r\n- - - -\r\n\r\nCes changements :\r\n\r\n- Ajoutent une fonctionnalité (par exemple ajout d'une variable).\r\n- Corrigent ou améliorent un calcul déjà existant.\r\n","created_at":"2018-06-26T12:40:20Z","updated_at":"2018-07-05T10:05:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4870fba663fa7b83973468e20df795db700e1451","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1018/commits","review_comments_url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1018/comments","review_comment_url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfisca/openfisca-france/issues/1018/comments","statuses_url":"https://api.github.com/repos/openfisca/openfisca-france/statuses/ab69b350c9b0a4cee77500c01edcf731f2fd9bbe","head":{"label":"openfisca:update-irpp-2017","ref":"update-irpp-2017","sha":"ab69b350c9b0a4cee77500c01edcf731f2fd9bbe","user":{"login":"openfisca","id":1794404,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTQ0MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1794404?v=4","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"repo":{"id":15510233,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUxMDIzMw==","name":"openfisca-france","full_name":"openfisca/openfisca-france","owner":{"login":"openfisca","id":1794404,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTQ0MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1794404?v=4","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfisca/openfisca-france","description":"French tax and benefit system for OpenFisca","fork":false,"url":"https://api.github.com/repos/openfisca/openfisca-france","forks_url":"https://api.github.com/repos/openfisca/openfisca-france/forks","keys_url":"https://api.github.com/repos/openfisca/openfisca-france/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfisca/openfisca-france/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfisca/openfisca-france/teams","hooks_url":"https://api.github.com/repos/openfisca/openfisca-france/hooks","issue_events_url":"https://api.github.com/repos/openfisca/openfisca-france/issues/events{/number}","events_url":"https://api.github.com/repos/openfisca/openfisca-france/events","assignees_url":"https://api.github.com/repos/openfisca/openfisca-france/assignees{/user}","branches_url":"https://api.github.com/repos/openfisca/openfisca-france/branches{/branch}","tags_url":"https://api.github.com/repos/openfisca/openfisca-france/tags","blobs_url":"https://api.github.com/repos/openfisca/openfisca-france/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfisca/openfisca-france/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfisca/openfisca-france/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfisca/openfisca-france/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfisca/openfisca-france/statuses/{sha}","languages_url":"https://api.github.com/repos/openfisca/openfisca-france/languages","stargazers_url":"https://api.github.com/repos/openfisca/openfisca-france/stargazers","contributors_url":"https://api.github.com/repos/openfisca/openfisca-france/contributors","subscribers_url":"https://api.github.com/repos/openfisca/openfisca-france/subscribers","subscription_url":"https://api.github.com/repos/openfisca/openfisca-france/subscription","commits_url":"https://api.github.com/repos/openfisca/openfisca-france/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfisca/openfisca-france/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfisca/openfisca-france/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfisca/openfisca-france/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfisca/openfisca-france/contents/{+path}","compare_url":"https://api.github.com/repos/openfisca/openfisca-france/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfisca/openfisca-france/merges","archive_url":"https://api.github.com/repos/openfisca/openfisca-france/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfisca/openfisca-france/downloads","issues_url":"https://api.github.com/repos/openfisca/openfisca-france/issues{/number}","pulls_url":"https://api.github.com/repos/openfisca/openfisca-france/pulls{/number}","milestones_url":"https://api.github.com/repos/openfisca/openfisca-france/milestones{/number}","notifications_url":"https://api.github.com/repos/openfisca/openfisca-france/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfisca/openfisca-france/labels{/name}","releases_url":"https://api.github.com/repos/openfisca/openfisca-france/releases{/id}","deployments_url":"https://api.github.com/repos/openfisca/openfisca-france/deployments","created_at":"2013-12-29T15:15:09Z","updated_at":"2018-07-03T13:40:29Z","pushed_at":"2018-07-05T09:39:10Z","git_url":"git://github.com/openfisca/openfisca-france.git","ssh_url":"git@github.com:openfisca/openfisca-france.git","clone_url":"https://github.com/openfisca/openfisca-france.git","svn_url":"https://github.com/openfisca/openfisca-france","homepage":"https://fr.openfisca.org/","size":31093,"stargazers_count":87,"watchers_count":87,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":133,"license":null,"forks":73,"open_issues":133,"watchers":87,"default_branch":"master"}},"base":{"label":"openfisca:master","ref":"master","sha":"fccbc23e4f1efa14b47c0e6cb3cfac082174bfb9","user":{"login":"openfisca","id":1794404,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTQ0MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1794404?v=4","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"repo":{"id":15510233,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUxMDIzMw==","name":"openfisca-france","full_name":"openfisca/openfisca-france","owner":{"login":"openfisca","id":1794404,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTQ0MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1794404?v=4","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfisca/openfisca-france","description":"French tax and benefit system for OpenFisca","fork":false,"url":"https://api.github.com/repos/openfisca/openfisca-france","forks_url":"https://api.github.com/repos/openfisca/openfisca-france/forks","keys_url":"https://api.github.com/repos/openfisca/openfisca-france/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfisca/openfisca-france/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfisca/openfisca-france/teams","hooks_url":"https://api.github.com/repos/openfisca/openfisca-france/hooks","issue_events_url":"https://api.github.com/repos/openfisca/openfisca-france/issues/events{/number}","events_url":"https://api.github.com/repos/openfisca/openfisca-france/events","assignees_url":"https://api.github.com/repos/openfisca/openfisca-france/assignees{/user}","branches_url":"https://api.github.com/repos/openfisca/openfisca-france/branches{/branch}","tags_url":"https://api.github.com/repos/openfisca/openfisca-france/tags","blobs_url":"https://api.github.com/repos/openfisca/openfisca-france/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfisca/openfisca-france/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfisca/openfisca-france/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfisca/openfisca-france/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfisca/openfisca-france/statuses/{sha}","languages_url":"https://api.github.com/repos/openfisca/openfisca-france/languages","stargazers_url":"https://api.github.com/repos/openfisca/openfisca-france/stargazers","contributors_url":"https://api.github.com/repos/openfisca/openfisca-france/contributors","subscribers_url":"https://api.github.com/repos/openfisca/openfisca-france/subscribers","subscription_url":"https://api.github.com/repos/openfisca/openfisca-france/subscription","commits_url":"https://api.github.com/repos/openfisca/openfisca-france/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfisca/openfisca-france/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfisca/openfisca-france/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfisca/openfisca-france/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfisca/openfisca-france/contents/{+path}","compare_url":"https://api.github.com/repos/openfisca/openfisca-france/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfisca/openfisca-france/merges","archive_url":"https://api.github.com/repos/openfisca/openfisca-france/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfisca/openfisca-france/downloads","issues_url":"https://api.github.com/repos/openfisca/openfisca-france/issues{/number}","pulls_url":"https://api.github.com/repos/openfisca/openfisca-france/pulls{/number}","milestones_url":"https://api.github.com/repos/openfisca/openfisca-france/milestones{/number}","notifications_url":"https://api.github.com/repos/openfisca/openfisca-france/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfisca/openfisca-france/labels{/name}","releases_url":"https://api.github.com/repos/openfisca/openfisca-france/releases{/id}","deployments_url":"https://api.github.com/repos/openfisca/openfisca-france/deployments","created_at":"2013-12-29T15:15:09Z","updated_at":"2018-07-03T13:40:29Z","pushed_at":"2018-07-05T09:39:10Z","git_url":"git://github.com/openfisca/openfisca-france.git","ssh_url":"git@github.com:openfisca/openfisca-france.git","clone_url":"https://github.com/openfisca/openfisca-france.git","svn_url":"https://github.com/openfisca/openfisca-france","homepage":"https://fr.openfisca.org/","size":31093,"stargazers_count":87,"watchers_count":87,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":133,"license":null,"forks":73,"open_issues":133,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1018"},"html":{"href":"https://github.com/openfisca/openfisca-france/pull/1018"},"issue":{"href":"https://api.github.com/repos/openfisca/openfisca-france/issues/1018"},"comments":{"href":"https://api.github.com/repos/openfisca/openfisca-france/issues/1018/comments"},"review_comments":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1018/comments"},"review_comment":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1018/commits"},"statuses":{"href":"https://api.github.com/repos/openfisca/openfisca-france/statuses/ab69b350c9b0a4cee77500c01edcf731f2fd9bbe"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Anna-Livia"}}