projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a4cb4f
)
RT# 80669 Cancelled customers on customer churn report
author
Mitch Jackson
<mitch@freeside.biz>
Tue, 28 Aug 2018 20:52:28 +0000
(16:52 -0400)
committer
Mitch Jackson
<mitch@freeside.biz>
Fri, 31 Aug 2018 18:53:49 +0000
(14:53 -0400)
FS/FS/Report/Table.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Report/Table.pm
b/FS/FS/Report/Table.pm
index
cef7813
..
7c4f973
100644
(file)
--- a/
FS/FS/Report/Table.pm
+++ b/
FS/FS/Report/Table.pm
@@
-1115,7
+1115,7
@@
sub calculate_churn_cust {
as suspended,
SUM((s_active = 0 and s_suspended > 0 and e_active > 0)::int)
as resumed,
- SUM((
s_active > 0 and e_active = 0 and e_suspended = 0
)::int)
+ SUM((
e_active = 0 and e_cancelled > s_cancelled
)::int)
as cancelled
FROM ($cust_sql) AS x
";