{"action":"created","comment":{"url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/comments/202298008","pull_request_review_id":136966418,"id":202298008,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjI5ODAwOA==","diff_hunk":"@@ -1704,6 +1823,18 @@ def formula(foyer_fiscal, period, parameters):\n \n         return iaidrdi + plus_values + cont_rev_loc + teicaa\n \n+    def formula_2013_01_01(foyer_fiscal, period, parameters):\n+        '''\n+        impôt avant imputation de l'irpp\n+        '''\n+        iaidrdi = foyer_fiscal('iaidrdi', period)","path":"openfisca_france/model/prelevements_obligatoires/impot_revenu/ir.py","position":429,"original_position":429,"commit_id":"5549afe72adff878648ed12fd0d773ac8d02ac38","original_commit_id":"5549afe72adff878648ed12fd0d773ac8d02ac38","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":"Il y a t'il une meilleur terminologie pour `iaidrdi`, `cont_rev_loc` ou `teicaa`?","created_at":"2018-07-13T09:39:54Z","updated_at":"2018-07-13T09:41:53Z","html_url":"https://github.com/openfisca/openfisca-france/pull/1034#discussion_r202298008","pull_request_url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1034","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/comments/202298008"},"html":{"href":"https://github.com/openfisca/openfisca-france/pull/1034#discussion_r202298008"},"pull_request":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1034"}}},"pull_request":{"url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1034","id":200083715,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMDgzNzE1","html_url":"https://github.com/openfisca/openfisca-france/pull/1034","diff_url":"https://github.com/openfisca/openfisca-france/pull/1034.diff","patch_url":"https://github.com/openfisca/openfisca-france/pull/1034.patch","issue_url":"https://api.github.com/repos/openfisca/openfisca-france/issues/1034","number":1034,"state":"open","locked":false,"title":"Correction et mise à jour de la taxation des revenus du capital dans l'IRPP","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":"Cette PR verrifie le calcul de l'impôt sur le revenu relatif au revenus du capital (RVCM et plus-values) depuis 2013 et, le cas échéant, le corrige ou le mets à jour et essaie de le simplifier pour le rendre plus clair.\r\n\r\n*NB : pour la taxation des plus-values, il reste encore un peu de travail à faire (prise en compte des moins-values, des abattements, taxation au système du quotient ..).*\r\n\r\n* Évolution du système socio-fiscal. \r\n* Périodes concernées : à partir du 01/01/2013 essentiellement\r\n* Zones impactées : \r\n  - ` model/prelevements_obligatoires/impot_revenu/ir.py`.\r\n  - ` model/revenus/capital/financier.py`\r\n  - ` model/revenus/capital/plus_value.py`\r\n  - ` parameters/impot_revenu/plus_values.yaml`\r\n* Détails :\r\n  - Ajout de nouvelles cases de l'impôt (2013-2017) relatives aux plus-values ou aux revenus financiers\r\n  - Réorganise le fichier `plus_value.py` afin de le rendre plus lisible\r\n  - Corrige le calcul du RFR (afin de prendre en compte les revenus financiers et les plus-values qui sont éxonérés ou imposés forfaitairement)\r\n  - Corrige et mets à jour le calcul des RVCM et plus-value taxés au barème, et de ceux taxés forfaitairement\r\n  - Déplace des variables de revenus qui étaient dans le fichier de calcul de l'IR\r\n\r\n- - - -\r\n\r\nCes changements :\r\n\r\n- Modifient l'API publique d'OpenFisca France (par exemple renommage ou suppression de variables).\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-07-09T12:28:55Z","updated_at":"2018-07-13T09:41:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa080be6d9915cd514584ff50af776f8616f9df9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"maukoquiroga","id":329236,"node_id":"MDQ6VXNlcjMyOTIzNg==","avatar_url":"https://avatars2.githubusercontent.com/u/329236?v=4","gravatar_id":"","url":"https://api.github.com/users/maukoquiroga","html_url":"https://github.com/maukoquiroga","followers_url":"https://api.github.com/users/maukoquiroga/followers","following_url":"https://api.github.com/users/maukoquiroga/following{/other_user}","gists_url":"https://api.github.com/users/maukoquiroga/gists{/gist_id}","starred_url":"https://api.github.com/users/maukoquiroga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maukoquiroga/subscriptions","organizations_url":"https://api.github.com/users/maukoquiroga/orgs","repos_url":"https://api.github.com/users/maukoquiroga/repos","events_url":"https://api.github.com/users/maukoquiroga/events{/privacy}","received_events_url":"https://api.github.com/users/maukoquiroga/received_events","type":"User","site_admin":false},{"login":"sandcha","id":6567910,"node_id":"MDQ6VXNlcjY1Njc5MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/6567910?v=4","gravatar_id":"","url":"https://api.github.com/users/sandcha","html_url":"https://github.com/sandcha","followers_url":"https://api.github.com/users/sandcha/followers","following_url":"https://api.github.com/users/sandcha/following{/other_user}","gists_url":"https://api.github.com/users/sandcha/gists{/gist_id}","starred_url":"https://api.github.com/users/sandcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandcha/subscriptions","organizations_url":"https://api.github.com/users/sandcha/orgs","repos_url":"https://api.github.com/users/sandcha/repos","events_url":"https://api.github.com/users/sandcha/events{/privacy}","received_events_url":"https://api.github.com/users/sandcha/received_events","type":"User","site_admin":false},{"login":"bfabre01","id":22620406,"node_id":"MDQ6VXNlcjIyNjIwNDA2","avatar_url":"https://avatars0.githubusercontent.com/u/22620406?v=4","gravatar_id":"","url":"https://api.github.com/users/bfabre01","html_url":"https://github.com/bfabre01","followers_url":"https://api.github.com/users/bfabre01/followers","following_url":"https://api.github.com/users/bfabre01/following{/other_user}","gists_url":"https://api.github.com/users/bfabre01/gists{/gist_id}","starred_url":"https://api.github.com/users/bfabre01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfabre01/subscriptions","organizations_url":"https://api.github.com/users/bfabre01/orgs","repos_url":"https://api.github.com/users/bfabre01/repos","events_url":"https://api.github.com/users/bfabre01/events{/privacy}","received_events_url":"https://api.github.com/users/bfabre01/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":880516620,"node_id":"MDU6TGFiZWw4ODA1MTY2MjA=","url":"https://api.github.com/repos/openfisca/openfisca-france/labels/flow:contrib:doing","name":"flow:contrib:doing","color":"b6db51","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1034/commits","review_comments_url":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1034/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/1034/comments","statuses_url":"https://api.github.com/repos/openfisca/openfisca-france/statuses/5549afe72adff878648ed12fd0d773ac8d02ac38","head":{"label":"openfisca:corrige-taxation-capital-irpp","ref":"corrige-taxation-capital-irpp","sha":"5549afe72adff878648ed12fd0d773ac8d02ac38","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-12T06:46:48Z","pushed_at":"2018-07-13T08:24:43Z","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":31186,"stargazers_count":87,"watchers_count":87,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":125,"license":null,"forks":73,"open_issues":125,"watchers":87,"default_branch":"master"}},"base":{"label":"openfisca:master","ref":"master","sha":"3372ab3e341f3e3a2a8ab270c0b4095f5b112e9c","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-12T06:46:48Z","pushed_at":"2018-07-13T08:24:43Z","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":31186,"stargazers_count":87,"watchers_count":87,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":125,"license":null,"forks":73,"open_issues":125,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1034"},"html":{"href":"https://github.com/openfisca/openfisca-france/pull/1034"},"issue":{"href":"https://api.github.com/repos/openfisca/openfisca-france/issues/1034"},"comments":{"href":"https://api.github.com/repos/openfisca/openfisca-france/issues/1034/comments"},"review_comments":{"href":"https://api.github.com/repos/openfisca/openfisca-france/pulls/1034/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/1034/commits"},"statuses":{"href":"https://api.github.com/repos/openfisca/openfisca-france/statuses/5549afe72adff878648ed12fd0d773ac8d02ac38"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Anna-Livia"}}