[REF][PHP8.2] Remove unused dynamic props
authorBradley Taylor <hello@brad-taylor.co.uk>
Sun, 5 Nov 2023 11:14:52 +0000 (11:14 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Sun, 5 Nov 2023 11:14:52 +0000 (11:14 +0000)
CRM/Contribute/Form/AdditionalPayment.php

index e6e6cb824cfcfba6a5d3136973ed1a970deb4334..370f41ad560ef80de37a0d79ca7524a465dc8831 100644 (file)
@@ -85,12 +85,8 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract
       $this->_contributionId = $this->_id;
     }
 
-    $paymentDetails = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_id, $this->_component, FALSE, TRUE);
     $paymentAmt = $this->getAmountDue();
 
-    $this->_amtPaid = $paymentDetails['paid'];
-    $this->_amtTotal = $paymentDetails['total'];
-
     if ($paymentAmt >= 0) {
       $this->_owed = $paymentAmt;
     }
@@ -468,11 +464,7 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract
     if (!empty($params['contribution_id'])) {
       $this->_contributionId = $params['contribution_id'];
 
-      $paymentDetails = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_contributionId, $entityType, FALSE, TRUE);
-
       $paymentAmount = $this->getAmountDue();
-      $this->_amtPaid = $paymentDetails['paid'];
-      $this->_amtTotal = $paymentDetails['total'];
 
       if ($paymentAmount > 0) {
         $this->_owed = $paymentAmount;