X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main.pm;h=9f9ae1869d617ec142fbb2fd56e3e6c291437d06;hb=98e05f4fa66a6a131d3c0cc6d59c5fab128e4b7e;hp=a428f8929e5f473931638723de86ccc9a2c2136a;hpb=dadb0f39939a1e583df0cf49870e04ec406ef627;p=freeside.git diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index a428f8929..9f9ae1869 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2263,7 +2263,7 @@ sub cancel_expired_pkgs { my ( $self, $time ) = @_; my @cancel_pkgs = $self->ncancelled_pkgs( { - 'extra_sql' => " expire IS NOT NULL AND expire > 0 AND expire <= $time ", + 'extra_sql' => " AND expire IS NOT NULL AND expire > 0 AND expire <= $time " } ); foreach my $cust_pkg ( @cancel_pkgs ) { @@ -2285,10 +2285,10 @@ sub suspend_adjourned_pkgs { my @susp_pkgs = $self->ncancelled_pkgs( { 'extra_sql' => - " ( susp IS NULL OR susp = 0 ) - AND ( ( bill IS NOT NULL AND bill != 0 AND bill < $time ) - OR ( adjourn IS NOT NULL AND adjourn != 0 AND adjourn <= $time ) - ) + " AND ( susp IS NULL OR susp = 0 ) + AND ( ( bill IS NOT NULL AND bill != 0 AND bill < $time ) + OR ( adjourn IS NOT NULL AND adjourn != 0 AND adjourn <= $time ) + ) ", } );