[freeside-commits] freeside/httemplate/browse part_pkg.cgi, 1.52, 1.53

Ivan,,, ivan at wavetail.420.am
Sun May 31 01:39:21 PDT 2009


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

Modified Files:
	part_pkg.cgi 
Log Message:
add "hide one-time charges" toggle, RT#5255

Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/part_pkg.cgi,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- part_pkg.cgi	31 May 2009 06:59:37 -0000	1.52
+++ part_pkg.cgi	31 May 2009 08:39:19 -0000	1.53
@@ -57,7 +57,7 @@
 
 if ( $cgi->param('recurring') ) {
   $hash{'freq'} = { op=>'!=', value=>'0' };
-  $extra_count = ' freq != 0 ';
+  $extra_count = " freq != '0' ";
 }
 
 my $classnum = '';
@@ -152,6 +152,14 @@
          ).
   ' )';
 
+my $recur_toggle = $cgi->param('recurring') ? 'show' : 'hide';
+$cgi->param('recurring', $cgi->param('recurring') ^ 1 );
+
+$html_posttotal .=
+  '( <A HREF="'. $cgi->self_url.'">'. "$recur_toggle one-time charges</A> )";
+
+$cgi->param('recurring', $cgi->param('recurring') ^ 1 ); #put it back
+
 # ------
 
 my $link = [ $p.'edit/part_pkg.cgi?', 'pkgpart' ];



More information about the freeside-commits mailing list