From eb71b3f228be91ee1f875a8de75fc4fbacf0d7f4 Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 9 Jan 2018 15:04:57 +0530 Subject: [PATCH] CRM-21637 - Search Criteria for Card Type ID and Card Number not respected in Batch --- CRM/Batch/BAO/Batch.php | 2 ++ CRM/Financial/Page/AJAX.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CRM/Batch/BAO/Batch.php b/CRM/Batch/BAO/Batch.php index cbe84d0698..ad88c1eb97 100644 --- a/CRM/Batch/BAO/Batch.php +++ b/CRM/Batch/BAO/Batch.php @@ -719,6 +719,8 @@ LEFT JOIN civicrm_contribution_soft ON civicrm_contribution_soft.contribution_id 'contribution_date_low', 'contribution_check_number', 'contribution_status_id', + 'financial_trxn_card_type_id', + 'financial_trxn_pan_truncation', ); $values = array(); foreach ($searchFields as $field) { diff --git a/CRM/Financial/Page/AJAX.php b/CRM/Financial/Page/AJAX.php index 0a5b4ae6e8..9b21ce23ae 100644 --- a/CRM/Financial/Page/AJAX.php +++ b/CRM/Financial/Page/AJAX.php @@ -293,6 +293,8 @@ class CRM_Financial_Page_AJAX { 'civicrm_financial_trxn.currency as currency', 'civicrm_financial_trxn.status_id as status', 'civicrm_financial_trxn.check_number as check_number', + 'civicrm_financial_trxn.card_type_id', + 'civicrm_financial_trxn.pan_truncation' ); $columnHeader = array( -- 2.25.1