[freeside-commits] freeside/httemplate/edit part_pkg.cgi, 1.95, 1.96
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Sep 15 18:22:30 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv18364/httemplate/edit
Modified Files:
part_pkg.cgi
Log Message:
correct package editor when taxproducts off
Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_pkg.cgi,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- part_pkg.cgi 28 Aug 2008 07:38:39 -0000 1.95
+++ part_pkg.cgi 16 Sep 2008 01:22:27 -0000 1.96
@@ -97,6 +97,11 @@
},
layer_fields => \%taxproduct_fields,
layer_values_callback => $taxproduct_values,
+ layers_only => !$taxproducts,
+ cell_style => ( !$taxproducts
+ ? 'display:none'
+ : ''
+ ),
},
{ type => 'tablebreak-tr-title',
@@ -167,6 +172,9 @@
|| $curuser->access_right('Edit global package definitions')
|| ( $cgi->param('pkgnum') && $curuser->access_right('Customize customer package') );
+my $conf = new FS::Conf;
+my $taxproducts = $conf->exists('enable_taxproducts');
+
#XXX
# - tr-part_pkg_freq: month_increments_only (from price plans)
# - test cloning
More information about the freeside-commits
mailing list