Skip to content

Commit

Permalink
changes to append balance_due column using civicrm_searchColumns hook
Browse files Browse the repository at this point in the history
  • Loading branch information
monishdeb committed May 4, 2017
1 parent ba75fd0 commit a30579a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions CRM/Contribute/Selector/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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???
Expand Down
3 changes: 0 additions & 3 deletions templates/CRM/Contribute/Form/Selector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@
{if $row.amount_level }<br/>({$row.amount_level}){/if}
{if $row.contribution_recur_id}<br/>{ts}(Recurring){/ts}{/if}
</td>
<td class="crm-contribution-balance_due bold">
{$row.balance_due|crmMoney:$row.currency}
</td>
{if $softCreditColumns}
<td class="right bold crm-contribution-soft_credit_amount">
<span class="nowrap">{$row.contribution_soft_credit_amount|crmMoney:$row.currency}</span>
Expand Down

0 comments on commit a30579a

Please sign in to comment.