From: monishdeb Date: Thu, 2 Oct 2014 18:33:56 +0000 (+0530) Subject: Reverted some code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e88aa686b9084ca0a19010d7c90664e77e379602;p=civicrm-core.git Reverted some code --- diff --git a/CRM/Core/BAO/FinancialTrxn.php b/CRM/Core/BAO/FinancialTrxn.php index 063050c659..7008bf9607 100644 --- a/CRM/Core/BAO/FinancialTrxn.php +++ b/CRM/Core/BAO/FinancialTrxn.php @@ -385,12 +385,7 @@ WHERE ceft.entity_id = %1"; $expenseTypeId = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Expense Account is' ")); $domainId = CRM_Core_Config::domainID(); $amount = 0; - $contributionStatuses = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name'); if (!empty($params['prevContribution'])) { - if ($params['prevContribution']->contribution_status_id == array_search('Pending', $contributionStatuses) || - $params['contribution']->contribution_status_id == array_search('Refund', $contributionStatuses)) { - return FALSE; - } $amount = $params['prevContribution']->fee_amount; } $amount = $params['fee_amount'] - $amount;