Skip to content

Commit

Permalink
Merge pull request #11461 from mattwire/tax_calcs_on_edit_contribution
Browse files Browse the repository at this point in the history
CRM-20676 Add tax_amount to contribution create params so it doesn't get added …
  • Loading branch information
monishdeb authored Feb 8, 2018
2 parents 16f3fde + 4afeb33 commit 3ee8b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -1619,8 +1619,8 @@ protected function submit($submittedValues, $action, $pledgePaymentID) {
}
$params['line_item'] = $lineItem;
$params['payment_processor_id'] = $params['payment_processor'] = CRM_Utils_Array::value('id', $this->_paymentProcessor);
if (isset($submittedValues['tax_amount'])) {
$params['tax_amount'] = $submittedValues['tax_amount'];
if (isset($this->_values['tax_amount'])) {
$params['tax_amount'] = $this->_values['tax_amount'];
}
//create contribution.
if ($isQuickConfig) {
Expand Down

0 comments on commit 3ee8b77

Please sign in to comment.