[freeside-commits] freeside/httemplate/edit pkg_category.html, 1.3, 1.4 usage_class.html, 1.1, 1.2
Jeff Finucane,420,,
jeff at wavetail.420.am
Fri Nov 20 09:33:42 PST 2009
- Previous message: [freeside-commits] freeside/httemplate/browse pkg_category.html, 1.4, 1.5 usage_class.html, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.324.2.10, 1.324.2.11 Schema.pm, 1.168.2.4, 1.168.2.5 cust_bill.pm, 1.263.2.3, 1.263.2.4 cust_bill_pkg.pm, 1.42.2.2, 1.42.2.3 cust_bill_pkg_detail.pm, 1.10, 1.10.2.1 usage_class.pm, 1.2, 1.2.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv19789/httemplate/edit
Modified Files:
pkg_category.html usage_class.html
Log Message:
invoice formatting: add sections for usage, add sections per svc_phone, add folding like line items into one #6592
Index: usage_class.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/usage_class.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- usage_class.html 23 Aug 2008 21:59:45 -0000 1.1
+++ usage_class.html 20 Nov 2009 17:33:40 -0000 1.2
@@ -3,14 +3,26 @@
'table' => 'usage_class',
'fields' => [
'classname',
- { field=>'disabled',
- type=>'checkbox',
- value=>'Y',
+ 'weight',
+ { field => 'format',
+ type => $useformat ? 'select' : 'hidden',
+ ( $useformat
+ ? ( 'options' => [ keys %labels ],
+ 'labels' => \%labels,
+ )
+ : ()
+ ),
+ },
+ { field => 'disabled',
+ type => 'checkbox',
+ value => 'Y',
},
],
'labels' => {
'classnum' => 'Class number',
'classname' => 'Class name',
+ 'weight' => 'Weight',
+ 'format' => 'Format',
'disabled' => 'Disable class',
},
'viewall_dir' => 'browse',
@@ -22,4 +34,9 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+my $conf = new FS::Conf;
+my $useformat = $conf->exists('usage_class_as_a_section');
+
+my %labels = &FS::usage_class::summary_formats_labelhash();
+
</%init>
Index: pkg_category.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/pkg_category.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- pkg_category.html 29 Oct 2009 01:08:33 -0000 1.3
+++ pkg_category.html 20 Nov 2009 17:33:40 -0000 1.4
@@ -1,5 +1,28 @@
-<% include( 'elements/category_Common.html',
+<% include( 'elements/edit.html',
'name' => 'Package Category',
'table' => 'pkg_category',
- )
+ 'fields' => [
+ 'categoryname',
+ 'weight',
+ { field=>'condense', type=>'checkbox', value=>'Y', },
+ { field=>'disabled', type=>'checkbox', value=>'Y', },
+ ],
+ 'labels' => {
+ 'categorynum' => 'Category number',
+ 'categoryname' => 'Category name',
+ 'weight' => 'Weight',
+ 'condense' => 'Collapse identical items to one',
+ 'disabled' => 'Disable category',
+ },
+ 'viewall_dir' => 'browse',
+ %opt,
+ )
%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my %opt = @_;
+
+</%init>
- Previous message: [freeside-commits] freeside/httemplate/browse pkg_category.html, 1.4, 1.5 usage_class.html, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.324.2.10, 1.324.2.11 Schema.pm, 1.168.2.4, 1.168.2.5 cust_bill.pm, 1.263.2.3, 1.263.2.4 cust_bill_pkg.pm, 1.42.2.2, 1.42.2.3 cust_bill_pkg_detail.pm, 1.10, 1.10.2.1 usage_class.pm, 1.2, 1.2.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list