Remove unused variable
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 17 Jan 2022 21:34:37 +0000 (10:34 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 17 Jan 2022 21:34:37 +0000 (10:34 +1300)
This is over-written a couple of lines later in the template so
we don't need it & ergo don't need to assign it either

Note that the paramter is assigned in postProcess for the
receipt so this is just this usage

CRM/Contribute/Form/Contribution.php
templates/CRM/Contribute/Form/Contribution.tpl

index 703ad2912630eb26608e07e12f15563880f53dd6..b7f17717973ebf024024fbee9c06259da9516466 100644 (file)
@@ -516,11 +516,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
     $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']))
     ) {
index 6bda33a8f513fb205f5012917f9b0280cae46d9d..e9d4c7885fa987bf4da5ea7c3ed781ba8d291ca5 100644 (file)
           // 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);