--fixed for CRM-11467
authorPradeep Nayak <pradeep@pradeep.(none)>
Tue, 5 Mar 2013 18:47:36 +0000 (00:17 +0530)
committerPradeep Nayak <pradeep@pradeep.(none)>
Tue, 5 Mar 2013 18:47:36 +0000 (00:17 +0530)
CRM/Financial/BAO/ExportFormat/CSV.php

index e1e0a5fa7b055090c7f4158a941e0a2c9d817159..4962615464defe02b50365c2c121268afc6776f0 100644 (file)
@@ -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,