{"action":"created","issue":{"url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/79","repository_url":"https://api.github.com/repos/Freemius/wordpress-sdk","labels_url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/79/comments","events_url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/79/events","html_url":"https://github.com/Freemius/wordpress-sdk/issues/79","id":170511505,"number":79,"title":"Wrong discount calculation on bulk pricing","user":{"login":"intoxstudio","id":1677777,"avatar_url":"https://avatars.githubusercontent.com/u/1677777?v=3","gravatar_id":"","url":"https://api.github.com/users/intoxstudio","html_url":"https://github.com/intoxstudio","followers_url":"https://api.github.com/users/intoxstudio/followers","following_url":"https://api.github.com/users/intoxstudio/following{/other_user}","gists_url":"https://api.github.com/users/intoxstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/intoxstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intoxstudio/subscriptions","organizations_url":"https://api.github.com/users/intoxstudio/orgs","repos_url":"https://api.github.com/users/intoxstudio/repos","events_url":"https://api.github.com/users/intoxstudio/events{/privacy}","received_events_url":"https://api.github.com/users/intoxstudio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Freemius/wordpress-sdk/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"fajardoleo","id":16242034,"avatar_url":"https://avatars.githubusercontent.com/u/16242034?v=3","gravatar_id":"","url":"https://api.github.com/users/fajardoleo","html_url":"https://github.com/fajardoleo","followers_url":"https://api.github.com/users/fajardoleo/followers","following_url":"https://api.github.com/users/fajardoleo/following{/other_user}","gists_url":"https://api.github.com/users/fajardoleo/gists{/gist_id}","starred_url":"https://api.github.com/users/fajardoleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fajardoleo/subscriptions","organizations_url":"https://api.github.com/users/fajardoleo/orgs","repos_url":"https://api.github.com/users/fajardoleo/repos","events_url":"https://api.github.com/users/fajardoleo/events{/privacy}","received_events_url":"https://api.github.com/users/fajardoleo/received_events","type":"User","site_admin":false},"assignees":[{"login":"fajardoleo","id":16242034,"avatar_url":"https://avatars.githubusercontent.com/u/16242034?v=3","gravatar_id":"","url":"https://api.github.com/users/fajardoleo","html_url":"https://github.com/fajardoleo","followers_url":"https://api.github.com/users/fajardoleo/followers","following_url":"https://api.github.com/users/fajardoleo/following{/other_user}","gists_url":"https://api.github.com/users/fajardoleo/gists{/gist_id}","starred_url":"https://api.github.com/users/fajardoleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fajardoleo/subscriptions","organizations_url":"https://api.github.com/users/fajardoleo/orgs","repos_url":"https://api.github.com/users/fajardoleo/repos","events_url":"https://api.github.com/users/fajardoleo/events{/privacy}","received_events_url":"https://api.github.com/users/fajardoleo/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Freemius/wordpress-sdk/milestones/3","html_url":"https://github.com/Freemius/wordpress-sdk/milestones/1.2.1","labels_url":"https://api.github.com/repos/Freemius/wordpress-sdk/milestones/3/labels","id":1944047,"number":3,"title":"1.2.1","description":null,"creator":{"login":"vovafeldman","id":6830121,"avatar_url":"https://avatars.githubusercontent.com/u/6830121?v=3","gravatar_id":"","url":"https://api.github.com/users/vovafeldman","html_url":"https://github.com/vovafeldman","followers_url":"https://api.github.com/users/vovafeldman/followers","following_url":"https://api.github.com/users/vovafeldman/following{/other_user}","gists_url":"https://api.github.com/users/vovafeldman/gists{/gist_id}","starred_url":"https://api.github.com/users/vovafeldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovafeldman/subscriptions","organizations_url":"https://api.github.com/users/vovafeldman/orgs","repos_url":"https://api.github.com/users/vovafeldman/repos","events_url":"https://api.github.com/users/vovafeldman/events{/privacy}","received_events_url":"https://api.github.com/users/vovafeldman/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2016-08-16T03:52:51Z","updated_at":"2016-08-17T03:22:01Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-08-10T20:31:13Z","updated_at":"2016-08-21T22:11:06Z","closed_at":null,"body":"<img width=\"586\" alt=\"udklip\" src=\"https://cloud.githubusercontent.com/assets/1677777/17568754/5835fec8-5f45-11e6-9639-9560b4644393.PNG\">\r\n\r\nAnnual price per month for 1 license is $3.99 (20% discount). For 5 it's $16,95/m.\r\n\r\nSo firstly, it looks like the calculated multi-site license discount is an absolute value ($36). Otherwise it is correct.\r\nI can't wrap my head around how the 160% is calculated.\r\nCalculation should probably be Annual - (3,99 \\* 5\\*12) = $60\r\nTo get the percentage: $60 / Annual * 100 ~= 20%\r\n\r\nIMO it would also make more sense for the user if those lines are reversed, ie. first the annual license discount, then the multi-site license discount.\r\n\r\nJust to be clear, this issue does not change the subtotal, which is still correct (as entered in the dashboard).\r\n\r\nSDK version 1.1.9."},"comment":{"url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/comments/241285496","html_url":"https://github.com/Freemius/wordpress-sdk/issues/79#issuecomment-241285496","issue_url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/79","id":241285496,"user":{"login":"vovafeldman","id":6830121,"avatar_url":"https://avatars.githubusercontent.com/u/6830121?v=3","gravatar_id":"","url":"https://api.github.com/users/vovafeldman","html_url":"https://github.com/vovafeldman","followers_url":"https://api.github.com/users/vovafeldman/followers","following_url":"https://api.github.com/users/vovafeldman/following{/other_user}","gists_url":"https://api.github.com/users/vovafeldman/gists{/gist_id}","starred_url":"https://api.github.com/users/vovafeldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovafeldman/subscriptions","organizations_url":"https://api.github.com/users/vovafeldman/orgs","repos_url":"https://api.github.com/users/vovafeldman/repos","events_url":"https://api.github.com/users/vovafeldman/events{/privacy}","received_events_url":"https://api.github.com/users/vovafeldman/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T22:11:06Z","updated_at":"2016-08-21T22:11:06Z","body":"To test a multi-site license with the checkout add a ‘licenses‘ parameter to the JavaScript init with the relevant number. E.g. for 5-site license add:\r\n‘licenses: 5,‘"}}
{"actor":{"display_login":"vovafeldman"}}