[freeside-commits] freeside/httemplate/browse usage_class.html, NONE, 1.1 rate_detail.html, 1.4, 1.5

Jeff Finucane,420,, jeff at wavetail.420.am
Sat Aug 23 14:59:47 PDT 2008


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

Modified Files:
	rate_detail.html 
Added Files:
	usage_class.html 
Log Message:
add usage classes to rate details

--- NEW FILE: usage_class.html ---
<% include( 'elements/browse.html',
                 'title'       => 'Usage classes',
                 'html_init'   => $html_init,
                 'name'        => 'usage classes',
                 'disableable' => 1,
                 'disabled_statuspos' => 2,
                 'query'       => { 'table'     => 'usage_class',
                                    'hashref'   => {},
                                    'extra_sql' => 'ORDER BY classnum',
                                  },
                 'count_query' => 'SELECT COUNT(*) FROM usage_class',
                 'header'      => [ '#', 'Class' ],
                 'fields'      => [ 'classnum', 'classname' ],
                 'links'       => [ $link, $link ],
             )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my $html_init = 
  'Usage classes define groups of usage for taxation purposes.<BR><BR>'.
  qq!<A HREF="${p}edit/usage_class.html"><I>Add a usage class</I></A><BR><BR>!;

my $link = [ $p.'edit/usage_class.html?', 'classnum' ];

</%init>

Index: rate_detail.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/rate_detail.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- rate_detail.html	1 Apr 2008 04:19:11 -0000	1.4
+++ rate_detail.html	23 Aug 2008 21:59:45 -0000	1.5
@@ -17,6 +17,7 @@
                            'Included<BR>minutes',
                            'Charge per<BR>minute',
                            'Granularity',
+                           'Usage class',
                          ],
      'fields'         => [
                            'regionname',
@@ -28,10 +29,11 @@
                                  '&nbsp;<FONT SIZE="-1">(edit)</FONT>';
                                },
                            sub { $granularity{ shift->sec_granularity } },
+                           'classname',
                          ],
-     'links'          => [ '', '', $edit_link,    $edit_link,    '' ],
-     'link_onclicks'  => [ '', '', $edit_onclick, $edit_onclick, '' ],
-     'align'          => 'llrrc',
+     'links'          => [ '', '', $edit_link,    $edit_link,    '', '' ],
+     'link_onclicks'  => [ '', '', $edit_onclick, $edit_onclick, '', '' ],
+     'align'          => 'llrrcc',
    )
 %>
 <%once>



More information about the freeside-commits mailing list