From e0a8df2b64ffc0e05afa87a950fe08dfb773e5e1 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 19 Oct 2014 00:40:47 +0000 Subject: [PATCH] CRM 15488 Include invoice description in back office Credit Card Transactions --- CRM/Contribute/Form/Contribution.php | 1 + CRM/Member/Form/Membership.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 080b9563c9..e6228397fa 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -1621,6 +1621,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 diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 0df3043e6f..3dfdce987e 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1391,6 +1391,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 Contribution'); $this->_params['payment_action'] = 'Sale'; $this->_params['invoiceID'] = md5(uniqid(rand(), TRUE)); $this->_params['financial_type_id'] = $params['financial_type_id']; -- 2.25.1