[freeside-commits] freeside/FS/FS cust_pkg.pm,1.168,1.169

Mark Wells mark at wavetail.420.am
Thu Aug 26 19:10:16 PDT 2010


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

Modified Files:
	cust_pkg.pm 
Log Message:
per-package option to adjust bill date on unsuspend, RT#8434

Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -w -d -r1.168 -r1.169
--- cust_pkg.pm	24 Aug 2010 02:27:45 -0000	1.168
+++ cust_pkg.pm	27 Aug 2010 02:10:14 -0000	1.169
@@ -1024,10 +1024,16 @@
 
   my $conf = new FS::Conf;
 
-  $hash{'bill'} = ( $hash{'bill'} || $hash{'setup'} ) + $inactive
-    if ( $opt{'adjust_next_bill'}
-         || $conf->exists('unsuspend-always_adjust_next_bill_date') )
-    && $inactive > 0 && ( $hash{'bill'} || $hash{'setup'} );
+  if ( $inactive > 0 && 
+       ( $hash{'bill'} || $hash{'setup'} ) &&
+       ( $opt{'adjust_next_bill'} ||
+         $conf->exists('unsuspend-always_adjust_next_bill_date') ||
+         $self->part_pkg->option('unsuspend_adjust_bill', 1) )
+     ) {
+
+    $hash{'bill'} = ( $hash{'bill'} || $hash{'setup'} ) + $inactive;
+  
+  }
 
   $hash{'susp'} = '';
   $hash{'adjourn'} = '' if $hash{'adjourn'} < time;



More information about the freeside-commits mailing list