dev/core#1333 Fix incorrect balance amount on fully paid payment
authoreileen <emcnaughton@wikimedia.org>
Mon, 21 Oct 2019 00:46:55 +0000 (13:46 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 21 Oct 2019 00:46:55 +0000 (13:46 +1300)
commitfdbe8ee1b48420fd1ce4e01c316d4003cd511888
tree6f96e6d31a545fcd9cb610438f296281184ee0a1
parent13cbd9845719584b444522374e94dbaab0118150
dev/core#1333 Fix incorrect balance amount on fully paid payment

Per https://lab.civicrm.org/dev/core/issues/1333 this is resulting in an incorrect balance.

The code was previously marked as highly dubious
CRM/Contribute/BAO/Contribution.php
CRM/Financial/BAO/Payment.php
tests/phpunit/CRM/Contribute/Form/AdditionalPaymentTest.php