[freeside-commits] freeside/httemplate/browse tax_rate.cgi, 1.2, 1.3
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Jun 18 11:50:47 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv32468/browse
Modified Files:
tax_rate.cgi
Log Message:
allow enabling and disabling if tax_rate rows in groups (RT 3566)
Index: tax_rate.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/tax_rate.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- tax_rate.cgi 6 Apr 2008 16:12:44 -0000 1.2
+++ tax_rate.cgi 18 Jun 2008 18:50:44 -0000 1.3
@@ -3,6 +3,7 @@
'name_singular' => 'tax rate',
'menubar' => \@menubar,
'html_init' => $html_init,
+ 'html_form' => $html_form,
'query' => {
'table' => 'tax_rate',
'hashref' => $hashref,
@@ -179,7 +180,6 @@
$cgi->delete('tax_type');
$cgi->delete('tax_cat');
-
if ( $geocode || $taxclassnum ) {
push @menubar, 'View all tax rates' => $p.'browse/tax_rate.cgi';
}
@@ -193,6 +193,21 @@
$cgi->param('tax_type', $tax_type ) if $tax_type;
$cgi->param('tax_cat', $tax_cat ) if $tax_cat;
+my $html_form = include('/elements/init_overlib.html'). '<BR><BR>'.
+ join(' ',
+ map {
+ include('/elements/popup_link.html',
+ {
+ 'action' => $p. "misc/enable_or_disable_tax.html?action=$_&".
+ $cgi->query_string,
+ 'label' => ucfirst($_). ' all these taxes',
+ 'actionlabel' => ucfirst($_). ' taxes',
+ },
+ );
+ }
+ qw(disable enable)
+ );
+
my $hashref = {};
my $extra_sql = '';
if ( $data_vendor ) {
More information about the freeside-commits
mailing list