[freeside-commits] freeside/FS/FS cust_pkg.pm,1.157,1.158

Ivan,,, ivan at wavetail.420.am
Sat Mar 13 15:50:56 PST 2010


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

Modified Files:
	cust_pkg.pm 
Log Message:
quiet extraneous warnings from expire_months/start_1st stuff, getting in the way of debugging for ncic, RT#7780

Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -w -d -r1.157 -r1.158
--- cust_pkg.pm	12 Mar 2010 03:36:35 -0000	1.157
+++ cust_pkg.pm	13 Mar 2010 23:50:54 -0000	1.158
@@ -252,14 +252,14 @@
 sub insert {
   my( $self, %options ) = @_;
 
-  if ( $self->part_pkg->option('start_1st') && !$self->start_date ) {
+  if ( $self->part_pkg->option('start_1st', 1) && !$self->start_date ) {
     my ($sec,$min,$hour,$mday,$mon,$year) = (localtime(time) )[0,1,2,3,4,5];
     $mon += 1 unless $mday == 1;
     until ( $mon < 12 ) { $mon -= 12; $year++; }
     $self->start_date( timelocal_nocheck(0,0,0,1,$mon,$year) );
   }
 
-  my $expire_months = $self->part_pkg->option('expire_months');
+  my $expire_months = $self->part_pkg->option('expire_months', 1);
   if ( $expire_months && !$self->expire ) {
     my $start = $self->start_date || $self->setup || time;
 



More information about the freeside-commits mailing list