summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2008-07-15 20:56:05 +0000
committerivan <ivan>2008-07-15 20:56:05 +0000
commit65c9c676535ac629adbb7d6480afec0c6199910d (patch)
tree201cf528e70cd5f754c804cddd23736e8ca3c6e6 /FS
parentb7de08cc66e2f6e427c6fbcc1393b7eaba56b0fb (diff)
prevent inactive customers from showing up in reports of cancelled customers
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_main.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 53bf9f3ca..b9c2d66e0 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -5204,6 +5204,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. " )
";
}