Fix cancel payment action to reverse financial items related to cancelled payment
authoreileen <emcnaughton@wikimedia.org>
Sun, 27 Oct 2019 22:54:53 +0000 (11:54 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 27 Oct 2019 22:54:53 +0000 (11:54 +1300)
commitdf29ccff784d62f75c4b2c7f65dd508fd5d6eb01
treee634a9284b6ebab5f5396129aaa7e6a949d2889b
parentc50e0bbe3a9432f11e75cb1f80cef1206a9da1dd
Fix cancel payment action to reverse financial items related to cancelled payment

The unit test to test & ensure this was failing to pick up that the records were not being created because it iterated
through the created rows & checked they were right but there was no check to ensure the rows were created :-(

This still leaves a gap I think for refunds not tied to a specific payment but that can be a later step
CRM/Financial/BAO/Payment.php
api/v3/Payment.php
tests/phpunit/api/v3/PaymentTest.php