diff options
| author | Mitch Jackson <mitch@freeside.biz> | 2018-08-28 16:52:28 -0400 |
|---|---|---|
| committer | Mitch Jackson <mitch@freeside.biz> | 2018-08-31 15:08:09 -0400 |
| commit | 6686819fd4feebda67a069e2ba456ea1f53bea64 (patch) | |
| tree | 0b31c8482150e7989c91d96bfd04c7cd8c90eebe | |
| parent | f894f28f646e6a233ccb10624f37d7a5f216279b (diff) | |
RT# 80669 Cancelled customers on customer churn report
| -rw-r--r-- | FS/FS/Report/Table.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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 "; |
