[freeside-commits] branch master updated. 5df83a73541d983c51eff47e875cf63fc45e53ff

Mitch Jackson mitch at freeside.biz
Tue Aug 28 13:53:27 PDT 2018


The branch, master has been updated
       via  5df83a73541d983c51eff47e875cf63fc45e53ff (commit)
      from  6941a2c5684a7483dbdfe6afa50af3633b6dbddb (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 5df83a73541d983c51eff47e875cf63fc45e53ff
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