Skip to content

Commit

Permalink
CRM-17090 fix - Accounting batch filters broken
Browse files Browse the repository at this point in the history
  • Loading branch information
monishdeb committed Aug 30, 2015
1 parent a813a55 commit 30d46f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CRM/Batch/BAO/Batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,8 @@ public static function getBatchFinancialItems($entityID, $returnValues, $notPres
'sort_name',
'financial_type_id',
'contribution_page_id',
'contribution_payment_instrument_id',
'contribution_transaction_id',
'payment_instrument_id',
'contribution_trxn_id',
'contribution_source',
'contribution_currency_type',
'contribution_pay_later',
Expand Down Expand Up @@ -737,6 +737,7 @@ public static function getBatchFinancialItems($entityID, $returnValues, $notPres
$where = implode(' AND ', $query->_where[0]) .
" AND civicrm_entity_batch.batch_id IS NULL
AND civicrm_entity_financial_trxn.entity_table = 'civicrm_contribution'";
$where = str_replace('civicrm_contribution.payment_instrument_id', 'civicrm_financial_trxn.payment_instrument_id', $where);
$searchValue = TRUE;
}
else {
Expand Down

0 comments on commit 30d46f2

Please sign in to comment.