From 37f181cc0b65e4509dd68593cb7555db42d8e088 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 2 Apr 2008 20:42:44 +0000 Subject: checkpoint tax editors and correct a blunder --- httemplate/edit/part_pkg_taxoverride.html | 157 +++++++++++++++++++++--------- 1 file changed, 110 insertions(+), 47 deletions(-) (limited to 'httemplate/edit/part_pkg_taxoverride.html') diff --git a/httemplate/edit/part_pkg_taxoverride.html b/httemplate/edit/part_pkg_taxoverride.html index 61cca1fbc..ba709ce64 100644 --- a/httemplate/edit/part_pkg_taxoverride.html +++ b/httemplate/edit/part_pkg_taxoverride.html @@ -1,61 +1,124 @@ -<%doc> +<% include('/elements/header-popup.html', 'Override taxes', '', 'onload="resizeFrames()"') %> - The crappy version - - -<% include('/elements/header-popup.html', 'Select tax product') %> + + + + + + + +
+ +
+
+ +
+ + +
+ +
+ +
+
- - -<% ntable("#cccccc", 2) %> - - Tax override - - <% include( '/elements/select-table.html', - 'table' => 'tax_rate', - 'name_col' => 'taxname', - 'curr_value' => \@curr_value, - 'element_etc' => "id='taxoverride_popup_select'", - 'multiple' => '1', - ) - %> - - - -

-
- + <% include('/elements/footer.html') %> +<%once> + +my $conf = new FS::Conf; + <%init> -my $conf = new FS::Conf; +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + + +my $selected_offset = $1 + if $cgi->param('selected_offset') =~/^(\d+)$/; -my @curr_value; -my ( $query ) = $cgi->keywords; -$query =~ /^([\d,]+)$/; -push @curr_value, split ',', $1 - if $1; +my $unselected_offset = $1 + if $cgi->param('unselected_offset') =~/^(\d+)$/; -unless (scalar(@curr_value)) { - #push @curr_value, map {$_=>taxnum} $part_pkg->tax_rate; -} +my $selected = $1 + if $cgi->param('selected') =~/^([,\d]+)$/; -- cgit v1.2.1