CRM-20392 add unit test and fix for incorrect total used in line item creation code.
authorPradeep Nayak <pradpnayak@gmail.com>
Wed, 12 Apr 2017 11:32:42 +0000 (23:32 +1200)
committereileen <emcnaughton@wikimedia.org>
Wed, 19 Apr 2017 04:52:23 +0000 (16:52 +1200)
commit61bfc59503bd8a42c19e04afc50971e136391f63
treeb73e56c00c4e23e9cf285b69dc1bef2f0c85d564
parent0695da5a68063bce7da5e25a225c7dc5d7f2a8c5
CRM-20392 add unit test and fix for incorrect total used in line item creation code.

Eileen's note - this is code done by Pradeep that I am reviewing - I am committing
and merging the portion I have reviewed so far. This fixes a bug replicable in
the test Pradeep wrote, and some minor obvious cleanups such as removing unused parameters.

I've commented out some tests to complete this portion & there is still code of Pradeeps
not yet reviewed.
CRM/Contribute/BAO/Contribution.php
CRM/Contribute/Form/AdditionalPayment.php
CRM/Price/BAO/LineItem.php
tests/phpunit/CRM/Contribute/Form/AdditionalPaymentTest.php [new file with mode: 0644]