{"action":"created","issue":{"url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11077","repository_url":"https://api.github.com/repos/civicrm/civicrm-core","labels_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11077/labels{/name}","comments_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11077/comments","events_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11077/events","html_url":"https://github.com/civicrm/civicrm-core/pull/11077","id":263424465,"number":11077,"title":"CRM-21245: Incorrect Contribution status 'Pending Refund'","user":{"login":"monishdeb","id":3735621,"avatar_url":"https://avatars3.githubusercontent.com/u/3735621?v=4","gravatar_id":"","url":"https://api.github.com/users/monishdeb","html_url":"https://github.com/monishdeb","followers_url":"https://api.github.com/users/monishdeb/followers","following_url":"https://api.github.com/users/monishdeb/following{/other_user}","gists_url":"https://api.github.com/users/monishdeb/gists{/gist_id}","starred_url":"https://api.github.com/users/monishdeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monishdeb/subscriptions","organizations_url":"https://api.github.com/users/monishdeb/orgs","repos_url":"https://api.github.com/users/monishdeb/repos","events_url":"https://api.github.com/users/monishdeb/events{/privacy}","received_events_url":"https://api.github.com/users/monishdeb/received_events","type":"User","site_admin":false},"labels":[{"id":246037889,"url":"https://api.github.com/repos/civicrm/civicrm-core/labels/master","name":"master","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-10-06T12:07:53Z","updated_at":"2018-02-07T04:07:37Z","closed_at":"2017-12-18T20:23:44Z","author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/civicrm/civicrm-core/pulls/11077","html_url":"https://github.com/civicrm/civicrm-core/pull/11077","diff_url":"https://github.com/civicrm/civicrm-core/pull/11077.diff","patch_url":"https://github.com/civicrm/civicrm-core/pull/11077.patch"},"body":"Overview\r\n----------------------------------------\r\nSteps to replicate: \r\nIf the participant is registered to an event by admin in backend and event has 3 selections:\r\n1. 1st  - $1500.00\r\n2. 2nd - $1200.00\r\nAt first '1st' selection was made and partial payment of $500.00 was made, then event participation summary is viewed, it shows correct status. Screenshot: http://prntscr.com/gsfokn\r\nNow when selection is changed to '2nd' still contact owes $700 but system says the payment status to be \"Pending refund\". Screenshot: http://prntscr.com/gsfpgg  \r\n\r\nBefore\r\n----------------------------------------\r\nContribution status is updated to 'Pending Refund' - Incorrect.\r\nhttps://www.screencast.com/t/cOfGhsHgQJe\r\n\r\nAfter\r\n----------------------------------------\r\nContribution status is retained to 'Partially Paid' - Correct.\r\n![event-pending-refund-after](https://user-images.githubusercontent.com/3735621/31277125-06d00604-aabd-11e7-9ba6-3464a7146822.gif)\n\n---\n\n * [CRM-21245: Incorrect Contribution status \"Pending Refund\"](https://issues.civicrm.org/jira/browse/CRM-21245)"},"comment":{"url":"https://api.github.com/repos/civicrm/civicrm-core/issues/comments/363650810","html_url":"https://github.com/civicrm/civicrm-core/pull/11077#issuecomment-363650810","issue_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11077","id":363650810,"user":{"login":"pradpnayak","id":2053075,"avatar_url":"https://avatars2.githubusercontent.com/u/2053075?v=4","gravatar_id":"","url":"https://api.github.com/users/pradpnayak","html_url":"https://github.com/pradpnayak","followers_url":"https://api.github.com/users/pradpnayak/followers","following_url":"https://api.github.com/users/pradpnayak/following{/other_user}","gists_url":"https://api.github.com/users/pradpnayak/gists{/gist_id}","starred_url":"https://api.github.com/users/pradpnayak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradpnayak/subscriptions","organizations_url":"https://api.github.com/users/pradpnayak/orgs","repos_url":"https://api.github.com/users/pradpnayak/repos","events_url":"https://api.github.com/users/pradpnayak/events{/privacy}","received_events_url":"https://api.github.com/users/pradpnayak/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T04:07:37Z","updated_at":"2018-02-07T04:07:37Z","author_association":"CONTRIBUTOR","body":"@agh1 According to your workflow the contribution status should be 'Pending refund' since you have already paid $1,200 and you have updated the line item so that the total amount is now $1,000. Therefore the contribution status should be 'Pending refund' with $200.\r\n"}}
{"actor":{"display_login":"pradpnayak"}}