[freeside-commits] branch FREESIDE_4_BRANCH updated. c2b4bc64544ee18dae0093306b79d3d9798a02c1
Mitch Jackson
mitch at freeside.biz
Fri Aug 31 12:02:19 PDT 2018
The branch, FREESIDE_4_BRANCH has been updated
via c2b4bc64544ee18dae0093306b79d3d9798a02c1 (commit)
from 6a4cb4fdcbd37ff57a99b58d57a7c017d21d3a7f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c2b4bc64544ee18dae0093306b79d3d9798a02c1
Author: Mitch Jackson <mitch at freeside.biz>
Date: Tue Aug 28 16:52:28 2018 -0400
RT# 80669 Cancelled customers on customer churn report
diff --git a/FS/FS/Report/Table.pm b/FS/FS/Report/Table.pm
index cef7813af..7c4f97309 100644
--- 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
";
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Report/Table.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the freeside-commits
mailing list