From 81e472f49bf6a9532ebd3b5393a630c049f7f4ae Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 6 Mar 2013 00:17:36 +0530 Subject: [PATCH] --fixed for CRM-11467 --- CRM/Financial/BAO/ExportFormat/CSV.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Financial/BAO/ExportFormat/CSV.php b/CRM/Financial/BAO/ExportFormat/CSV.php index e1e0a5fa7b..4962615464 100644 --- a/CRM/Financial/BAO/ExportFormat/CSV.php +++ b/CRM/Financial/BAO/ExportFormat/CSV.php @@ -85,7 +85,11 @@ class CRM_Financial_BAO_ExportFormat_CSV extends CRM_Financial_BAO_ExportFormat c.source AS source, ft.currency AS currency, cov_status.label AS status, - eftc.amount AS amount, + CASE + WHEN efti.entity_id IS NOT NULL + THEN efti.amount + ELSE eftc.amount + END AS amount, fa_from.account_type_code AS credit_account_type_code, fa_from.accounting_code AS credit_account, fa_from.name AS credit_account_name, -- 2.25.1