From 08ac1d0dc44626f442f8287c497eca9e98ab92b7 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 17 Oct 2017 09:41:12 -0400 Subject: RT# 78019 - Added total revenue line to Package churn report --- FS/FS/h_cust_pkg.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FS/FS/h_cust_pkg.pm') diff --git a/FS/FS/h_cust_pkg.pm b/FS/FS/h_cust_pkg.pm index 423b442..f074647 100644 --- a/FS/FS/h_cust_pkg.pm +++ b/FS/FS/h_cust_pkg.pm @@ -140,9 +140,9 @@ sub churn_fromwhere_sql { # XXX or should we include if they were created by a pkgpart change? $from = "cust_pkg"; @where = ( - "setup >= $speriod", - "setup < $eperiod", - "change_pkgnum IS NULL" + "cust_pkg.setup >= $speriod", + "cust_pkg.setup < $eperiod", + "cust_pkg.change_pkgnum IS NULL" ); } elsif ( $status eq 'cancel' ) { # also simple, because packages should only be canceled once -- cgit v1.1