From c42b75d904388c9da0e2db61e2e6a2ca3f31f618 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 dbc6731bc1..366e7dd663 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -1462,6 +1462,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 a06570a79c..108d78d07c 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1385,6 +1385,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