{"action":"created","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3336","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3336/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3336/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3336/events","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3336","id":67015928,"number":3336,"title":"Discounts incorrectly round","user":{"login":"elliott-stocks","id":1441538,"avatar_url":"https://avatars.githubusercontent.com/u/1441538?v=3","gravatar_id":"","url":"https://api.github.com/users/elliott-stocks","html_url":"https://github.com/elliott-stocks","followers_url":"https://api.github.com/users/elliott-stocks/followers","following_url":"https://api.github.com/users/elliott-stocks/following{/other_user}","gists_url":"https://api.github.com/users/elliott-stocks/gists{/gist_id}","starred_url":"https://api.github.com/users/elliott-stocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliott-stocks/subscriptions","organizations_url":"https://api.github.com/users/elliott-stocks/orgs","repos_url":"https://api.github.com/users/elliott-stocks/repos","events_url":"https://api.github.com/users/elliott-stocks/events{/privacy}","received_events_url":"https://api.github.com/users/elliott-stocks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Discounts","name":"Discounts","color":"e102d8"}],"state":"open","locked":false,"assignee":{"login":"cklosowski","id":1390124,"avatar_url":"https://avatars.githubusercontent.com/u/1390124?v=3","gravatar_id":"","url":"https://api.github.com/users/cklosowski","html_url":"https://github.com/cklosowski","followers_url":"https://api.github.com/users/cklosowski/followers","following_url":"https://api.github.com/users/cklosowski/following{/other_user}","gists_url":"https://api.github.com/users/cklosowski/gists{/gist_id}","starred_url":"https://api.github.com/users/cklosowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cklosowski/subscriptions","organizations_url":"https://api.github.com/users/cklosowski/orgs","repos_url":"https://api.github.com/users/cklosowski/repos","events_url":"https://api.github.com/users/cklosowski/events{/privacy}","received_events_url":"https://api.github.com/users/cklosowski/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/103","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/milestones/2.4.2","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/103/labels","id":1105425,"number":103,"title":"2.4.2","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":17,"state":"open","created_at":"2015-05-11T18:12:27Z","updated_at":"2015-07-13T19:15:26Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-07T23:52:29Z","updated_at":"2015-07-13T19:49:14Z","closed_at":null,"body":"The total price is off by 1 pence/cent when an discount is applied to an odd number of items in the cart.\r\n\r\nFor example -\r\n\r\nThree products = £33\r\nDiscount code for - £22\r\nTotal should = £11\r\n\r\nBut the total actually equals £10.99.\r\n\r\n![edd-discount-cart](https://cloud.githubusercontent.com/assets/1441538/7036180/eff2076a-dd88-11e4-971a-970e07e7f76d.png)\r\n\r\nThis discounts per item are -\r\n\r\n`ARRAY\r\n(\r\n    [0] => 6.67\r\n    [1] => 8.67\r\n    [2] => 6.67\r\n)`\r\n\r\nThis seems related to #3325\r\n\r\nTested on two different stores. The above is running a default theme and EDD 2.3.5."},"comment":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/comments/121036075","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3336#issuecomment-121036075","issue_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3336","id":121036075,"user":{"login":"cklosowski","id":1390124,"avatar_url":"https://avatars.githubusercontent.com/u/1390124?v=3","gravatar_id":"","url":"https://api.github.com/users/cklosowski","html_url":"https://github.com/cklosowski","followers_url":"https://api.github.com/users/cklosowski/followers","following_url":"https://api.github.com/users/cklosowski/following{/other_user}","gists_url":"https://api.github.com/users/cklosowski/gists{/gist_id}","starred_url":"https://api.github.com/users/cklosowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cklosowski/subscriptions","organizations_url":"https://api.github.com/users/cklosowski/orgs","repos_url":"https://api.github.com/users/cklosowski/repos","events_url":"https://api.github.com/users/cklosowski/events{/privacy}","received_events_url":"https://api.github.com/users/cklosowski/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T19:49:13Z","updated_at":"2015-07-13T19:49:13Z","body":"We need to get 2.4.2 out the door...and this is a risky change. Punting to 2.5. We need to fix something up, in the way that cart discounts are applied."}}