cancel when it is *after* expiration date, not when it is *before*
authorivan <ivan>
Mon, 7 Oct 2002 08:47:10 +0000 (08:47 +0000)
committerivan <ivan>
Mon, 7 Oct 2002 08:47:10 +0000 (08:47 +0000)
FS/bin/freeside-daily

index 52028b7..17ee798 100755 (executable)
@@ -30,7 +30,7 @@ foreach $cust_main ( @cust_main ) {
 
   # $^T not $time because -d is for pre-printing invoices
   foreach my $cust_pkg (
-    grep { $_->expire && $_->expire >= $^T } $cust_main->ncancelled_pkgs
+    grep { $_->expire && $_->expire <= $^T } $cust_main->ncancelled_pkgs
   ) {
     my $error = $cust_pkg->cancel;
     warn "Error cancelling expired pkg ". $cust_pkg->pkgnum. " for custnum ".