[freeside-commits] branch FREESIDE_3_BRANCH updated. 6686819fd4feebda67a069e2ba456ea1f53bea64

Mitch Jackson mitch at freeside.biz
Fri Aug 31 12:11:35 PDT 2018


The branch, FREESIDE_3_BRANCH has been updated
       via  6686819fd4feebda67a069e2ba456ea1f53bea64 (commit)
      from  f894f28f646e6a233ccb10624f37d7a5f216279b (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 6686819fd4feebda67a069e2ba456ea1f53bea64
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