diff options
author | ivan <ivan> | 2008-07-15 20:56:11 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-07-15 20:56:11 +0000 |
commit | 6247301726d369e85f94d32ca4a2943a9a325f92 (patch) | |
tree | 57332d8b8d97a5aeefa484a6543e3fa5dfee783e | |
parent | c5f5eabe3a37c29f2e53402392e6cec61be00c15 (diff) |
prevent inactive customers from showing up in reports of cancelled customers
-rw-r--r-- | FS/FS/cust_main.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index d5250ef61..ed35adbd3 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -4570,6 +4570,7 @@ sub cancel_sql { AND 0 = ( $select_count_pkgs AND $recurring_sql AND ( cust_pkg.cancel IS NULL OR cust_pkg.cancel = 0 ) ) + AND 0 = ( $select_count_pkgs AND ". FS::cust_pkg->inactive_sql. " ) "; } |