From: JKingsnorth Date: Fri, 3 Jun 2016 10:50:31 +0000 (+0100) Subject: CRM-18739: Display currency for canceled contribution amount X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=982feebff3f5735ee9240a9e2fa51df69a576d07;p=civicrm-core.git CRM-18739: Display currency for canceled contribution amount --- 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 {