[freeside-commits] freeside/FS/FS/part_export shellcommands.pm, 1.44, 1.45 sqlradius.pm, 1.34, 1.35
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Jun 30 22:03:44 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv22193/FS/FS/part_export
Modified Files:
shellcommands.pm sqlradius.pm
Log Message:
correct internal reason searching, prevent interleaved suspend/cancel/expire/adjourn, backporting and refactoring
Index: shellcommands.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/shellcommands.pm,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- shellcommands.pm 21 Feb 2007 11:26:02 -0000 1.44
+++ shellcommands.pm 1 Jul 2008 05:03:38 -0000 1.45
@@ -255,7 +255,9 @@
@radius_groups = $svc_acct->radius_groups;
my ($reasonnum, $reasontext, $reasontypenum, $reasontypetext);
- if ( $cust_pkg && $action eq 'suspend' && (my $r = $cust_pkg->last_reason) ) {
+ if ( $cust_pkg && $action eq 'suspend' &&
+ (my $r = $cust_pkg->last_reason('susp')) )
+ {
$reasonnum = $r->reasonnum;
$reasontext = $r->reason;
$reasontypenum = $r->reason_type;
Index: sqlradius.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/sqlradius.pm,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- sqlradius.pm 24 Jun 2008 02:09:37 -0000 1.34
+++ sqlradius.pm 1 Jul 2008 05:03:40 -0000 1.35
@@ -311,7 +311,7 @@
#false laziness with FS::part_export::shellcommands
#subclass part_export?
- my $r = $svc_acct->cust_svc->cust_pkg->last_reason;
+ my $r = $svc_acct->cust_svc->cust_pkg->last_reason('susp');
my %reasonmap = $self->_groups_susp_reason_map;
my $userspec = '';
if ($r) {
More information about the freeside-commits
mailing list