summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-06-27 22:40:44 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-06-27 22:40:44 -0500
commit735f73aec092f56df6289e0fe4f655d57c11f93f (patch)
tree68188974379b817437dc29b9b37433341f10acb7 /FS
parent6fbdc0d20421de8e0d93eb9d332a0683efb994cc (diff)
RT#15006: Bug? Cancelled customers shown in reports?
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_main.pm13
1 files changed, 4 insertions, 9 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index ecd30702f..3fb0a87fb 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -4769,15 +4769,10 @@ Returns an SQL expression identifying un-cancelled cust_main records.
=cut
sub uncancelled_sql { uncancel_sql(@_); }
-sub uncancel_sql { "
- ( 0 < ( $select_count_pkgs
- AND ( cust_pkg.cancel IS NULL
- OR cust_pkg.cancel = 0
- )
- )
- OR 0 = ( $select_count_pkgs )
- )
-"; }
+sub uncancel_sql {
+ my $self = shift;
+ "( NOT (".$self->cancelled_sql.") )"; #sensitive to cust_main-status_module
+}
=item balance_sql