projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RT# 80669 Cancelled customers on customer churn report
[freeside.git]
/
FS
/
FS
/
Report
/
Table.pm
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
";