[freeside-commits] freeside/httemplate/edit pkg_category.html, NONE, 1.1 pkg_class.html, 1.4, 1.5
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Jun 18 20:18:20 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv10248/httemplate/edit
Modified Files:
pkg_class.html
Added Files:
pkg_category.html
Log Message:
package categories (meta package classes) and grouping invoices by them
Index: pkg_class.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/pkg_class.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- pkg_class.html 13 Jan 2008 21:35:52 -0000 1.4
+++ pkg_class.html 19 Jun 2008 03:18:18 -0000 1.5
@@ -3,6 +3,10 @@
'table' => 'pkg_class',
'fields' => [
'classname',
+ (scalar(@category)
+ ? { field=>'categorynum', type=>'select-table', 'empty_label'=>'(none)', 'table'=>'pkg_category', 'name_col'=>'categoryname' }
+ : { field=>'categorynum', type=>'hidden' }
+ ),
{ field=>'disabled', type=>'checkbox', value=>'Y', },
],
'labels' => {
@@ -19,4 +23,5 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+my @category = qsearch('pkg_category', { 'disabled' => '' });
</%init>
--- NEW FILE: pkg_category.html ---
<% include( 'elements/edit.html',
'name' => 'Package Category',
'table' => 'pkg_category',
'fields' => [
'categoryname',
{ field=>'disabled', type=>'checkbox', value=>'Y', },
],
'labels' => {
'categorynum' => 'Category number',
'categoryname' => 'Category name',
'disabled' => 'Disable category',
},
'viewall_dir' => 'browse',
)
%>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
</%init>
More information about the freeside-commits
mailing list