{"action":"created","issue":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/8196","repository_url":"https://api.github.com/repos/PrestaShop/PrestaShop","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/8196/labels{/name}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/8196/comments","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/8196/events","html_url":"https://github.com/PrestaShop/PrestaShop/pull/8196","id":246398667,"number":8196,"title":"Recalculate the sales stats in dashboard when we get a refund","user":{"login":"hibatallahAouadni","id":23308427,"avatar_url":"https://avatars0.githubusercontent.com/u/23308427?v=4","gravatar_id":"","url":"https://api.github.com/users/hibatallahAouadni","html_url":"https://github.com/hibatallahAouadni","followers_url":"https://api.github.com/users/hibatallahAouadni/followers","following_url":"https://api.github.com/users/hibatallahAouadni/following{/other_user}","gists_url":"https://api.github.com/users/hibatallahAouadni/gists{/gist_id}","starred_url":"https://api.github.com/users/hibatallahAouadni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hibatallahAouadni/subscriptions","organizations_url":"https://api.github.com/users/hibatallahAouadni/orgs","repos_url":"https://api.github.com/users/hibatallahAouadni/repos","events_url":"https://api.github.com/users/hibatallahAouadni/events{/privacy}","received_events_url":"https://api.github.com/users/hibatallahAouadni/received_events","type":"User","site_admin":false},"labels":[{"id":281042497,"url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/Code%20reviewed","name":"Code reviewed","color":"009800","default":false},{"id":186105912,"url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/waiting%20for%20author%20feedback","name":"waiting for author feedback","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/milestones/30","html_url":"https://github.com/PrestaShop/PrestaShop/milestone/30","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/milestones/30/labels","id":2639194,"number":30,"title":"1.6.1.17","description":"","creator":{"login":"maximebiloe","id":2203436,"avatar_url":"https://avatars1.githubusercontent.com/u/2203436?v=4","gravatar_id":"","url":"https://api.github.com/users/maximebiloe","html_url":"https://github.com/maximebiloe","followers_url":"https://api.github.com/users/maximebiloe/followers","following_url":"https://api.github.com/users/maximebiloe/following{/other_user}","gists_url":"https://api.github.com/users/maximebiloe/gists{/gist_id}","starred_url":"https://api.github.com/users/maximebiloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximebiloe/subscriptions","organizations_url":"https://api.github.com/users/maximebiloe/orgs","repos_url":"https://api.github.com/users/maximebiloe/repos","events_url":"https://api.github.com/users/maximebiloe/events{/privacy}","received_events_url":"https://api.github.com/users/maximebiloe/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":11,"state":"open","created_at":"2017-07-13T13:46:57Z","updated_at":"2017-08-30T13:05:50Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2017-07-28T16:35:11Z","updated_at":"2017-08-30T13:24:36Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/8196","html_url":"https://github.com/PrestaShop/PrestaShop/pull/8196","diff_url":"https://github.com/PrestaShop/PrestaShop/pull/8196.diff","patch_url":"https://github.com/PrestaShop/PrestaShop/pull/8196.patch"},"body":"| Questions     | Answers\r\n| ------------- | -------------------------------------------------------\r\n| Branch?       | 1.6.1.x\r\n| Description?  | I adopt the solution proposed in this [PR](https://github.com/PrestaShop/PrestaShop/pull/8116) and I return the result_slips array with result_orders \r\n| Type?         | bug fix\r\n| Category?     | BO\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Fixed ticket? | http://forge.prestashop.com/browse/PSCSX-7579\r\n| How to test?  | make an order with 2 products at 50 euros each, order = 100 euros. Then, change the order's status to \"payement accepted\" and check the sales stats in dashboard, you will see 100 euros. Afterward, make a partial refund and return one of two products and check the sales stats in dashboard page, you will see that the sales amount get reduced and turn up to 50 euros.\r\n"},"comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments/325988962","html_url":"https://github.com/PrestaShop/PrestaShop/pull/8196#issuecomment-325988962","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/8196","id":325988962,"user":{"login":"marionf","id":13449658,"avatar_url":"https://avatars3.githubusercontent.com/u/13449658?v=4","gravatar_id":"","url":"https://api.github.com/users/marionf","html_url":"https://github.com/marionf","followers_url":"https://api.github.com/users/marionf/followers","following_url":"https://api.github.com/users/marionf/following{/other_user}","gists_url":"https://api.github.com/users/marionf/gists{/gist_id}","starred_url":"https://api.github.com/users/marionf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marionf/subscriptions","organizations_url":"https://api.github.com/users/marionf/orgs","repos_url":"https://api.github.com/users/marionf/repos","events_url":"https://api.github.com/users/marionf/events{/privacy}","received_events_url":"https://api.github.com/users/marionf/received_events","type":"User","site_admin":false},"created_at":"2017-08-30T13:24:36Z","updated_at":"2017-08-30T13:24:36Z","author_association":"NONE","body":"Thank you for these details @hibatallahAouadni \r\nI have an empty dashboard when I test your PR\r\n![capture du 2017-08-30 15-22-26](https://user-images.githubusercontent.com/13449658/29874508-489197e4-8d97-11e7-96b2-29cb3a5b02f4.png)\r\nIf I enable de demo mode, it's ok.\r\n"}}
{"actor":{"display_login":"marionf"}}