[Ref] One more place to use total fn
authoreileen <emcnaughton@wikimedia.org>
Fri, 26 Mar 2021 00:20:44 +0000 (13:20 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 8 Apr 2021 23:07:40 +0000 (11:07 +1200)
CRM/Member/Form/Membership.php

index c435bde7294f48ab14a8f3494128c95dab9e51f0..5e5b83431101a1fa156dfb4f13275bfa6a8bbd67 100644 (file)
@@ -1097,7 +1097,7 @@ DESC limit 1");
       $params['register_date'] = CRM_Utils_Time::date('YmdHis');
 
       // add all the additional payment params we need
-      $formValues['amount'] = $params['total_amount'];
+      $formValues['amount'] = $this->order->getTotalAmount();
       $formValues['currencyID'] = $this->getCurrency();
       $formValues['description'] = ts("Contribution submitted by a staff person using member's credit card for signup");
       $formValues['invoiceID'] = $this->getInvoiceID();