[freeside-commits] freeside/FS/FS cust_pkg.pm, 1.204.2.11, 1.204.2.12

Ivan,,, ivan at wavetail.420.am
Tue Oct 18 12:25:45 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv26274

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	cust_pkg.pm 
Log Message:
set the suspension date before calling service suspensions, fix RADIUS groups suspension, RT#14398

Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.204.2.11
retrieving revision 1.204.2.12
diff -u -w -d -r1.204.2.11 -r1.204.2.12
--- cust_pkg.pm	9 Sep 2011 21:33:34 -0000	1.204.2.11
+++ cust_pkg.pm	18 Oct 2011 19:25:43 -0000	1.204.2.12
@@ -1000,6 +1000,19 @@
     }
   }
 
+  my %hash = $self->hash;
+  if ( $date ) {
+    $hash{'adjourn'} = $date;
+  } else {
+    $hash{'susp'} = $suspend_time;
+  }
+  my $new = new FS::cust_pkg ( \%hash );
+  $error = $new->replace( $self, options => { $self->options } );
+  if ( $error ) {
+    $dbh->rollback if $oldAutoCommit;
+    return $error;
+  }
+
   unless ( $date ) {
 
     my @labels = ();
@@ -1055,19 +1068,6 @@
 
   }
 
-  my %hash = $self->hash;
-  if ( $date ) {
-    $hash{'adjourn'} = $date;
-  } else {
-    $hash{'susp'} = $suspend_time;
-  }
-  my $new = new FS::cust_pkg ( \%hash );
-  $error = $new->replace( $self, options => { $self->options } );
-  if ( $error ) {
-    $dbh->rollback if $oldAutoCommit;
-    return $error;
-  }
-
   $dbh->commit or die $dbh->errstr if $oldAutoCommit;
 
   ''; #no errors



More information about the freeside-commits mailing list