[freeside-commits] freeside/FS/FS svc_acct.pm,1.184,1.185

Ivan,,, ivan at wavetail.420.am
Thu Sep 29 13:19:58 PDT 2005


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv15879

Modified Files:
	svc_acct.pm 
Log Message:
make sure there is an expiraiton date to set as well

Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.184
retrieving revision 1.185
diff -u -d -r1.184 -r1.185
--- svc_acct.pm	21 Sep 2005 12:47:48 -0000	1.184
+++ svc_acct.pm	29 Sep 2005 20:19:56 -0000	1.185
@@ -1058,7 +1058,7 @@
   my $pw_attrib = length($password) <= 12 ? $radius_password : 'Crypt-Password';  $check{$pw_attrib} = $password;
 
   my $cust_pkg = $self->cust_svc->cust_pkg;
-  if ( $cust_pkg && $cust_pkg->part_pkg->is_prepaid ) {
+  if ( $cust_pkg && $cust_pkg->part_pkg->is_prepaid && $cust_pkg->bill ) {
     $check{'Expiration'} = time2str('%B %e %Y %T', $cust_pkg->bill ); #http://lists.cistron.nl/pipermail/freeradius-users/2005-January/040184.html
   }
 



More information about the freeside-commits mailing list