fix customer status display for some cases with suspended accounts
[freeside.git] / FS / FS / cust_main.pm
index 27f97f3..34ca9d4 100644 (file)
@@ -2917,6 +2917,7 @@ sub susp_sql { "
     AND 0 = ( SELECT COUNT(*) FROM cust_pkg
                 WHERE cust_pkg.custnum = cust_main.custnum
                   AND ( cust_pkg.susp IS NULL OR cust_pkg.susp = 0 )
+                  AND ( cust_pkg.cancel IS NULL OR cust_pkg.cancel = 0 )
             )
 "; }