From 982feebff3f5735ee9240a9e2fa51df69a576d07 Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Fri, 3 Jun 2016 11:50:31 +0100 Subject: [PATCH] CRM-18739: Display currency for canceled contribution amount --- CRM/Contact/BAO/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 7e2cb411ba..8d0bc48bdb 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -4856,8 +4856,8 @@ SELECT COUNT( conts.total_amount ) as cancel_count, if ($dao->N <= 1) { if ($dao->fetch()) { $summary['cancel']['count'] = $dao->cancel_count; - $summary['cancel']['amount'] = $dao->cancel_amount; - $summary['cancel']['avg'] = $dao->cancel_avg; + $summary['cancel']['amount'] = CRM_Utils_Money::format($dao->cancel_amount, $dao->currency); + $summary['cancel']['avg'] = CRM_Utils_Money::format($dao->cancel_avg, $dao->currency); } } else { -- 2.25.1