X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_pkg_taxoverride.html;h=61dfa2ac5b677bca97ace89eec84f264b3c6c84b;hb=62b18c75989a1b00a25079f8f110992aaad81bba;hp=61cca1fbcdeafea69f93862b385c6f598e8f4c47;hpb=4104f4e3d1b387296b16b4a035b4b7f42e0c5977;p=freeside.git
diff --git a/httemplate/edit/part_pkg_taxoverride.html b/httemplate/edit/part_pkg_taxoverride.html
index 61cca1fbc..61dfa2ac5 100644
--- a/httemplate/edit/part_pkg_taxoverride.html
+++ b/httemplate/edit/part_pkg_taxoverride.html
@@ -1,61 +1,132 @@
-<%doc>
+<% include('/elements/header-popup.html', 'Override taxes', '', 'onload="resizeFrames()"') %>
- The crappy version
-
-%doc>
-<% include('/elements/header-popup.html', 'Select tax product') %>
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+
-
+
<% include('/elements/footer.html') %>
+<%once>
+
+my $conf = new FS::Conf;
+%once>
<%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 $unselected_offset = $1
+ if $cgi->param('unselected_offset') =~/^(\d+)$/;
+
+my $selected = $1
+ if $cgi->param('selected') =~/^([,\d]+)$/;
+
+my $element_name = $1
+ if $cgi->param('element_name') =~/^(\w+)$/;
-my @curr_value;
-my ( $query ) = $cgi->keywords;
-$query =~ /^([\d,]+)$/;
-push @curr_value, split ',', $1
- if $1;
+my $onclick = $1
+ if $cgi->param('onclick') =~/^(\w+)$/;
-unless (scalar(@curr_value)) {
- #push @curr_value, map {$_=>taxnum} $part_pkg->tax_rate;
-}
+$onclick = 'cClick' unless $onclick;
%init>