projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dff5ad8
)
CRM-18739: Display currency for canceled contribution amount
author
JKingsnorth
<john@johnkingsnorth.co.uk>
Fri, 3 Jun 2016 10:50:31 +0000
(11:50 +0100)
committer
JKingsnorth
<john@johnkingsnorth.co.uk>
Fri, 3 Jun 2016 10:50:31 +0000
(11:50 +0100)
CRM/Contact/BAO/Query.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contact/BAO/Query.php
b/CRM/Contact/BAO/Query.php
index 7e2cb411ba11ed78c8261a16994c242dedd0654c..8d0bc48bdb5c7ee982080a9f1836a549fbf4a6df 100644
(file)
--- 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 {