From c6c91efcb375d76ab9f497f30867b9fdb9840e40 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 18 Jun 2015 17:35:26 +0530 Subject: [PATCH] CRM-16718: Update Recurring Contribution: Indicate direction ---------------------------------------- * CRM-16718: Update Recurring Contribution: Indicate direction of amount change in activity subject https://issues.civicrm.org/jira/browse/CRM-16718 --- CRM/Contribute/Form/UpdateSubscription.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/UpdateSubscription.php b/CRM/Contribute/Form/UpdateSubscription.php index 75e3f1c3f7..c38cb99b5f 100644 --- a/CRM/Contribute/Form/UpdateSubscription.php +++ b/CRM/Contribute/Form/UpdateSubscription.php @@ -224,7 +224,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form { $msgTitle = ts('Update Success'); $msgType = 'success'; - + $msg = ts('Recurring Contribution Updated'); $contactID = $this->_subscriptionDetails->contact_id; if ($this->_subscriptionDetails->amount != $params['amount']) { @@ -233,6 +233,12 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form { 1 => CRM_Utils_Money::format($this->_subscriptionDetails->amount, $this->_subscriptionDetails->currency), 2 => CRM_Utils_Money::format($params['amount'], $this->_subscriptionDetails->currency), )) . ' '; + if ($this->_subscriptionDetails->amount < $params['amount']) { + $msg = ts('Recurring Contribution Updated - increased installment amount'); + } + else { + $msg = ts('Recurring Contribution Updated - decreased installment amount'); + } } if ($this->_subscriptionDetails->installments != $params['installments']) { @@ -248,7 +254,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form { 'Update Recurring Contribution', 'name' ), - 'subject' => ts('Recurring Contribution Updated'), + 'subject' => $msg, 'details' => $message, 'activity_date_time' => date('YmdHis'), 'status_id' => CRM_Core_OptionGroup::getValue('activity_status', -- 2.25.1