Fix api Payment.create to support overpayments
authoreileen <emcnaughton@wikimedia.org>
Thu, 21 Nov 2019 10:12:00 +0000 (23:12 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 21 Nov 2019 10:12:00 +0000 (23:12 +1300)
commit4804f442c9514e61054aa5e3acb5a7a2269d04c2
tree1a881d301dfd4f29b5a25a1487054cdd12372b27
parent0be5362c79e2ab710aa1b4ccdbd50a4d910c8704
Fix api Payment.create to support overpayments

We've discussed this before - it's OK to add a payment to a fully paid contribution because ... life.

When this happens there should be no financial items linked to the over payment
CRM/Financial/BAO/Payment.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/PaymentTest.php