CRM-18739: Display currency for canceled contribution amount
authorJKingsnorth <john@johnkingsnorth.co.uk>
Fri, 3 Jun 2016 10:50:31 +0000 (11:50 +0100)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Fri, 3 Jun 2016 10:50:31 +0000 (11:50 +0100)
CRM/Contact/BAO/Query.php

index 7e2cb411ba11ed78c8261a16994c242dedd0654c..8d0bc48bdb5c7ee982080a9f1836a549fbf4a6df 100644 (file)
@@ -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 {