Merge pull request #4391 from seamuslee001/master
authorYashodha Chaku <yashodha.chaku@webaccess.co.in>
Thu, 13 Nov 2014 06:54:31 +0000 (12:24 +0530)
committerYashodha Chaku <yashodha.chaku@webaccess.co.in>
Thu, 13 Nov 2014 06:54:31 +0000 (12:24 +0530)
CRM 15488 Include invoice description in back office Credit Card Transac...

CRM/Contribute/Form/Contribution.php
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipRenewal.php

index dcc4f962026ec95547e42c858070944c33fc0033..128bf9c3ef90f7c203476fc118a2713d8010e45b 100644 (file)
@@ -1622,6 +1622,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
     $this->_params['ip_address'] = CRM_Utils_System::ipAddress();
     $this->_params['amount'] = $this->_params['total_amount'];
     $this->_params['amount_level'] = 0;
+    $this->_params['description'] = ts('Office Credit Card contribution');
     $this->_params['currencyID'] = CRM_Utils_Array::value('currency',
       $this->_params,
       $config->defaultCurrency
index 6b0b11b7271113f05c3047719ac630b659214155..a410a8f6440f8ce43c5dd1bdaa6e25bc5938f681 100644 (file)
@@ -1346,6 +1346,7 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
       $this->_params['ip_address'] = CRM_Utils_System::ipAddress();
       $this->_params['amount'] = $params['total_amount'];
       $this->_params['currencyID'] = $config->defaultCurrency;
+      $this->_params['description'] = ts('Office Credit Card Membership Signup Contribution');
       $this->_params['payment_action'] = 'Sale';
       $this->_params['invoiceID'] = md5(uniqid(rand(), TRUE));
       $this->_params['financial_type_id'] = $params['financial_type_id'];
index 5f145597d2c6aa0fca22ba469df2f4f642de860e..60a3df7528d8de223335416e4c4eab0c481e8a06 100644 (file)
@@ -611,6 +611,7 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
 
       $this->_params['year'] = CRM_Core_Payment_Form::getCreditCardExpirationYear($this->_params);
       $this->_params['month'] = CRM_Core_Payment_Form::getCreditCardExpirationMonth($this->_params);
+      $this->_params['description'] = ts('Office Credit Card Membership Renewal Contribution');
       $this->_params['ip_address'] = CRM_Utils_System::ipAddress();
       $this->_params['amount'] = $formValues['total_amount'];
       $this->_params['currencyID'] = $config->defaultCurrency;