From d1a885c65ac10e19bed0333a380dafeb42c2cef1 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 8 Oct 2005 00:47:20 +0000 Subject: fix tax class selection in package add/edit too --- httemplate/edit/part_pkg.cgi | 52 +++++++++++++++++--------------------------- 1 file changed, 20 insertions(+), 32 deletions(-) (limited to 'httemplate/edit/part_pkg.cgi') diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index e6e10e73f..2c3808fe1 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -1,4 +1,3 @@ - <% if ( $cgi->param('clone') && $cgi->param('clone') =~ /^(\d+)$/ ) { @@ -120,42 +119,31 @@ Tax information Setup fee tax exempt -<% - -print '{setuptax} eq "Y"; -print '>'; + {setuptax} eq 'Y' ? ' CHECKED' : '' %>> + + + + Recurring fee tax exempt + + {recurtax} eq 'Y' ? ' CHECKED' : '' %>> + + -print < -Recurring fee tax exempt -END +<% my $conf = new FS::Conf; %> +<% if ( $conf->exists('enable_taxclasses') ) { %> -print '{recurtax} eq "Y"; -print '>'; + + Tax class + + <%= include('/elements/select-taxclass.html', $hashref->{taxclass} ) %> + + -print ''; +<% } else { %> -my $conf = new FS::Conf; -#false laziness w/ view/cust_main.cgi quick order -if ( $conf->exists('enable_taxclasses') ) { - print 'Tax class'; -} else { - print - ''; -} + <%= include('/elements/select-taxclass.html', $hashref->{taxclass} ) %> -%> +<% } %> -- cgit v1.2.1