[freeside-commits] freeside/FS/bin freeside-daily,1.20,1.21
Ivan,,,
ivan at wavetail.420.am
Wed Sep 21 05:49:54 PDT 2005
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail:/tmp/cvs-serv13214
Modified Files:
freeside-daily
Log Message:
add prepaid support which sets RADIUS Expiration attribute, update customer view package UI
Index: freeside-daily
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-daily,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- freeside-daily 8 Jul 2005 23:06:31 -0000 1.20
+++ freeside-daily 21 Sep 2005 12:49:51 -0000 1.21
@@ -89,6 +89,19 @@
$cust_main->custnum. ": $error"
if $error;
}
+ # $^T not $time because -d is for pre-printing invoices
+ foreach my $cust_pkg (
+ grep { $_->part_pkg->is_prepaid
+ && $_->bill && $_->bill < $^T && ! $_->susp
+ }
+ $cust_main->ncancelled_pkgs
+ ) {
+ my $error = $cust_pkg->suspend;
+ warn "Error suspending package ". $cust_pkg->pkgnum.
+ " for custnum ". $cust_main->custnum.
+ ": $error"
+ if $error;
+ }
my $error = $cust_main->bill( 'time' => $time,
'resetup' => $opt_s, );
More information about the freeside-commits
mailing list