From e88aa686b9084ca0a19010d7c90664e77e379602 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Fri, 3 Oct 2014 00:03:56 +0530 Subject: [PATCH] Reverted some code --- CRM/Core/BAO/FinancialTrxn.php | 5 ----- 1 file changed, 5 deletions(-) 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; -- 2.25.1