Skip to content

Commit

Permalink
Merge pull request #22545 from eileenmcnaughton/build
Browse files Browse the repository at this point in the history
Remove unused variable
  • Loading branch information
seamuslee001 authored Jan 17, 2022
2 parents b0a1804 + 38129a1 commit 47b64be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,6 @@ public function buildQuickForm() {
$this->assign('payNow', FALSE);
$buildRecurBlock = FALSE;

// display tax amount on edit contribution page
if ($invoicing && $this->_action & CRM_Core_Action::UPDATE && isset($this->_values['tax_amount'])) {
$this->assign('totalTaxAmount', $this->_values['tax_amount']);
}

if (empty($this->_lineItems) &&
($this->_priceSetId || !empty($_POST['price_set_id']))
) {
Expand Down
1 change: 0 additions & 1 deletion templates/CRM/Contribute/Form/Contribution.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@
// replace all thousandMarker and change the separator to a dot
totalAmount = totalAmount.replace(thousandMarker,'').replace(separator,'.');
var totalTaxAmount = '{/literal}{$totalTaxAmount}{literal}';
var taxAmount = (taxRate/100)*totalAmount;
taxAmount = isNaN (taxAmount) ? 0:taxAmount;
var totalTaxAmount = taxAmount + Number(totalAmount);
Expand Down

0 comments on commit 47b64be

Please sign in to comment.