From 7fe400bd3f34c7dec045a80c8ab42cf8af9f5809 Mon Sep 17 00:00:00 2001 From: Kartik Kathuria Date: Sat, 25 Apr 2020 02:08:48 +0530 Subject: [PATCH] Made the change through export fields in BAO Signed-off-by: Kartik Kathuria --- CRM/Contribute/BAO/Contribution.php | 2 ++ CRM/Contribute/DAO/Contribution.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 3f2d17d920..0be08a5b7f 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -856,6 +856,8 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution { CRM_Core_BAO_CustomField::getFieldsForImport('Contribution', FALSE, FALSE, FALSE, $checkPermission) ); + $fields['financial_type_id']['title'] = ts('Financial Type ID'); + self::$_exportableFields = $fields; } diff --git a/CRM/Contribute/DAO/Contribution.php b/CRM/Contribute/DAO/Contribution.php index 964c8d855b..d56ce8b8c6 100644 --- a/CRM/Contribute/DAO/Contribution.php +++ b/CRM/Contribute/DAO/Contribution.php @@ -306,7 +306,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO { 'financial_type_id' => [ 'name' => 'financial_type_id', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('Financial Type ID'), + 'title' => ts('Financial Type'), 'description' => ts('FK to Financial Type for (total_amount - non_deductible_amount).'), 'where' => 'civicrm_contribution.financial_type_id', 'export' => TRUE, -- 2.25.1