[freeside-commits] freeside/FS/FS/Cron bill.pm,1.2,1.3
Ivan,,,
ivan at wavetail.420.am
Thu Feb 22 23:47:09 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail:/tmp/cvs-serv20973/Cron
Modified Files:
bill.pm
Log Message:
take the package-def defined action here, like freeside-prepaidd
Index: bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/bill.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- bill.pm 21 Jan 2007 21:45:28 -0000 1.2
+++ bill.pm 23 Feb 2007 07:47:07 -0000 1.3
@@ -94,7 +94,8 @@
}
$cust_main->ncancelled_pkgs
) {
- my $error = $cust_pkg->suspend;
+ my $action = $cust_pkg->part_pkg->option('recur_action') || 'suspend';
+ my $error = $cust_pkg->$action();
warn "Error suspending package ". $cust_pkg->pkgnum.
" for custnum ". $cust_main->custnum.
": $error"
More information about the freeside-commits
mailing list