[REF] Fix tax_amount to be consistent & load from the templateContribution
authoreileen <emcnaughton@wikimedia.org>
Thu, 24 Dec 2020 01:47:29 +0000 (14:47 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 24 Dec 2020 01:47:29 +0000 (14:47 +1300)
commit0408b3c2cf65167c0fc70e1b99d3b56caa71984f
treea6c8d7cf19ed9a16272734016b5ecb0ca67ca741
parentb2b9e8cee772ffc5be91db6a67c430aeaacee74e
[REF] Fix tax_amount to be consistent & load from the templateContribution

This leverages the work done in https://github.com/civicrm/civicrm-core/pull/15517/files (the test in particular)
but alters it to be more consistent. The original fix relied on the tax_amount on the contribution object
passed in - this fixes it to get the amount from the templateContribution (which is more consistent
now than when the patch was likely written
CRM/Contribute/BAO/Contribution.php
tests/phpunit/api/v3/ContributionTest.php