dev/core#2206 Move cancel pledge into Contribution.create and fix
authoreileen <emcnaughton@wikimedia.org>
Wed, 30 Dec 2020 08:37:41 +0000 (21:37 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 25 Jan 2021 05:24:09 +0000 (18:24 +1300)
commite26d0d27a9316298ba30ee8cb91fc39b44ba1ce5
treecb3e20792c23b5341e4ebc0145dce679609fb259
parent770e93086ac7af9462633a7f9cbcabcdad908353
dev/core#2206 Move cancel pledge into Contribution.create and fix

Per https://lab.civicrm.org/dev/core/-/issues/2206 I think updating pledge payments is a data issue
rather than a business process issue. Notably you can't record a new contribution against the pledge
unless the existing one is removed

This is the last thing that needs to be done before we can unhide contributioncancelactions
CRM/Contribute/BAO/Contribution.php
ext/contributioncancelactions/contributioncancelactions.php
ext/contributioncancelactions/tests/phpunit/CancelTest.php
tests/phpunit/CRM/Contribute/BAO/ContributionTest.php