CRM-17397 fix enotices on amount_level
authoreileenmcnaugton <eileen@fuzion.co.nz>
Thu, 22 Oct 2015 23:07:28 +0000 (12:07 +1300)
committereileenmcnaugton <eileen@fuzion.co.nz>
Thu, 22 Oct 2015 23:07:28 +0000 (12:07 +1300)
commitc039f658064fd0d34307da1be38932f6f3b65a4e
tree0b979684b722534b5bc18d9bc1e5366d720d2e1d
parent8950ecdc5aee35697da55bc9e733ace985895c65
CRM-17397 fix enotices on amount_level

After looking at this I think the 'right' answer is to always go to the same function to find out what the amount_level
should be - rather than calculate it on the forms and / or tack it onto the function that derives the line_items

I made this change on the form that was experiencing an issue & added a test.

Elsewhere I just added comments
15 files changed:
CRM/Batch/Form/Entry.php
CRM/Contribute/Form/AdditionalPayment.php
CRM/Contribute/Form/Contribution.php
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Contribute/Form/Contribution/Main.php
CRM/Contribute/Form/ContributionBase.php
CRM/Event/Cart/Form/Checkout/Payment.php
CRM/Event/Form/Registration.php
CRM/Event/Form/Registration/AdditionalParticipant.php
CRM/Event/Form/Registration/Register.php
CRM/Price/BAO/PriceSet.php
CRM/Utils/Cache.php
tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php
tests/phpunit/CRM/Price/BAO/PriceSetTest.php [new file with mode: 0644]
tests/phpunit/CiviTest/CiviUnitTestCase.php