summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorivan <ivan>2005-10-08 00:47:20 +0000
committerivan <ivan>2005-10-08 00:47:20 +0000
commitd1a885c65ac10e19bed0333a380dafeb42c2cef1 (patch)
tree40656923923b75a13114955c182c899c14a85ac8 /httemplate/view
parent4d77eb68f3501500ae66f84626b3922e2bb52e40 (diff)
fix tax class selection in package add/edit too
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/cust_main/quick-charge.html41
1 files changed, 5 insertions, 36 deletions
diff --git a/httemplate/view/cust_main/quick-charge.html b/httemplate/view/cust_main/quick-charge.html
index 9e4fb8c6e..2fe3d5f3d 100644
--- a/httemplate/view/cust_main/quick-charge.html
+++ b/httemplate/view/cust_main/quick-charge.html
@@ -1,49 +1,18 @@
<%
my( $cust_main ) = @_;
- my $conf = new FS::Conf;
%>
<FORM ACTION="<%=$p%>edit/process/quick-charge.cgi" METHOD="POST">
-<INPUT TYPE="hidden" NAME="custnum" VALUE="<%= $cust_main->custnum %>">
-Description:<INPUT TYPE="text" NAME="pkg">
-Amount:<INPUT TYPE="text" NAME="amount" SIZE=6>
-<% #false laziness w/ edit/part_pkg.cgi %>
-<% if ( $conf->exists('enable_taxclasses') ) { %>
-
- <SELECT NAME="taxclass">
-
- <% if ( $conf->exists('require_taxclasses') ) { %>
-
- <OPTION VALUE="(select)">Select tax class
- <% } else { %>
-
- <OPTION VALUE="">
-
- <% } %>
+<INPUT TYPE="hidden" NAME="custnum" VALUE="<%= $cust_main->custnum %>">
- <%
- my $sth = dbh->prepare('SELECT DISTINCT taxclass FROM cust_main_county')
- or die dbh->errstr;
- $sth->execute or die $sth->errstr;
- my %taxclasses = map { $_->[0] => 1 } @{$sth->fetchall_arrayref};
- my @taxclasses = grep $_, keys %taxclasses;
- %>
-
- <% foreach my $taxclass ( @taxclasses ) { %>
-
- <OPTION VALUE="<%= $taxclass %>"<%= 0 ? ' SELECTED' : '' %>><%= $taxclass %>
-
- <% } %>
+Description:<INPUT TYPE="text" NAME="pkg">
- </SELECT>
+Amount:<INPUT TYPE="text" NAME="amount" SIZE=6>
-<% } else { %>
+<%= include('/elements/select-taxclass.html') %>
- <INPUT TYPE="hidden" NAME="taxclass" VALUE="">';
-
-<% } %>
-
<INPUT TYPE="submit" VALUE="One-time charge">
+
</FORM>