[freeside-commits] freeside/httemplate/edit part_pkg.cgi, 1.121, 1.122

Ivan,,, ivan at wavetail.420.am
Sun Oct 17 19:46:35 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv24335/httemplate/edit

Modified Files:
	part_pkg.cgi 
Log Message:
suspend_bill package option to continue recurring billing while suspended and part_pkg-default_suspend_bill conf option to set it by default, RT#10148

Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_pkg.cgi,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -w -d -r1.121 -r1.122
--- part_pkg.cgi	10 Oct 2010 20:52:37 -0000	1.121
+++ part_pkg.cgi	18 Oct 2010 02:46:32 -0000	1.122
@@ -419,11 +419,14 @@
   my( $cgi, $object, $fields ) = @_;
 
   my $conf = new FS::Conf; 
+
   if ( $conf->exists('agent_defaultpkg') ) {
     #my @all_agent_types = map {$_->typenum} qsearch('agent_type',{});
     @agent_type = map {$_->typenum} qsearch('agent_type',{});
   }
 
+  $options{'suspend_bill'}=1 if $conf->exists('part_pkg-default_suspend_bill');
+
 };
 
 my $clone_callback = sub {



More information about the freeside-commits mailing list