From a30579a855b75697bf88a49a25b970378e32ac99 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Wed, 3 May 2017 14:50:42 +0530 Subject: [PATCH] changes to append balance_due column using civicrm_searchColumns hook --- CRM/Contribute/Selector/Search.php | 7 ------- templates/CRM/Contribute/Form/Selector.tpl | 3 --- 2 files changed, 10 deletions(-) diff --git a/CRM/Contribute/Selector/Search.php b/CRM/Contribute/Selector/Search.php index 1d490633b1b0..e547a3813c4a 100644 --- a/CRM/Contribute/Selector/Search.php +++ b/CRM/Contribute/Selector/Search.php @@ -402,13 +402,6 @@ public function &getRows($action, $offset, $rowCount, $sort, $output = NULL) { } } - $row['balance_due'] = CRM_Core_BAO_FinancialTrxn::getPartialPaymentWithType( - $result->contribution_id, - 'contribution', - FALSE, - $result->total_amount - ); - //carry campaign on selectors. // @todo - I can't find any evidence that 'carrying' the campaign on selectors actually // results in it being displayed anywhere so why do we do this??? diff --git a/templates/CRM/Contribute/Form/Selector.tpl b/templates/CRM/Contribute/Form/Selector.tpl index 07c4394a3d42..e4565b1b2528 100644 --- a/templates/CRM/Contribute/Form/Selector.tpl +++ b/templates/CRM/Contribute/Form/Selector.tpl @@ -67,9 +67,6 @@ {if $row.amount_level }
({$row.amount_level}){/if} {if $row.contribution_recur_id}
{ts}(Recurring){/ts}{/if} - - {$row.balance_due|crmMoney:$row.currency} - {if $softCreditColumns} {$row.contribution_soft_credit_amount|crmMoney:$row.currency}