X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_pkg.cgi;h=2c3808fe1a05d11d1204827969a7cbcabcffd88a;hb=cf8f8aafc5595b31f24a7b0d06289c830d123cb8;hp=e6e10e73f8779b40179cca4bb2e85a5fabce204f;hpb=1c7f3b811c8ab9c7ebe89ff080c333cbdf99d78a;p=freeside.git 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} ) %> -%> +<% } %>