From 1da0f2fec9de69a8538fe57e4d0c703c6ca58ed9 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 5 Apr 2017 15:16:37 +0530 Subject: [PATCH] CRM-20158, added comments ---------------------------------------- * CRM-20158: Store card type and last 4 digits of credit card https://issues.civicrm.org/jira/browse/CRM-20158 --- CRM/Core/BAO/FinancialTrxn.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Core/BAO/FinancialTrxn.php b/CRM/Core/BAO/FinancialTrxn.php index 3013845efe..c1a91e7fa8 100644 --- a/CRM/Core/BAO/FinancialTrxn.php +++ b/CRM/Core/BAO/FinancialTrxn.php @@ -713,6 +713,8 @@ WHERE ft.to_financial_account_id != {$toFinancialAccount} AND ft.to_financial_ac 'options' => array('sort' => 'financial_trxn_id DESC', 'limit' => 1), )); + // In case of Contribution status is Pending From Incomplete Transaction or Failed there is no Financial Entries created for Contribution. + // Above api will return 0 count, in such case we won't update card type and pan truncation field. if (!$financialTrxn['count']) { return NULL; } -- 2.25.1