X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main_county.cgi;h=7d1354d3e69e4493787cbd42c0553565fb237668;hp=f3d28825aa2d1edc7252ff4ca665f6b65f7da7aa;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=c0567c688084e89fcd11bf82348b6c418f1254ac diff --git a/httemplate/edit/cust_main_county.cgi b/httemplate/edit/cust_main_county.cgi index f3d28825a..7d1354d3e 100755 --- a/httemplate/edit/cust_main_county.cgi +++ b/httemplate/edit/cust_main_county.cgi @@ -1,69 +1,99 @@ -<% +% +% +%print header("Edit tax rates", menubar( +% 'Main Menu' => popurl(2), +%)); +% +%print qq!Error: !, $cgi->param('error'), +% "" +% if $cgi->param('error'); +% +%print qq!
!, &table(), < +% Country +% State +% County +% Taxclass
(per-package classification) +%END +% +%if ( dbdef->table('cust_main_county')->column('taxname') ) { +% print 'Tax name
(printed on invoices)'; +%} +% +%print <Tax +% Exempt
per
month +%END +% +%if ( dbdef->table('cust_main_county')->column('setuptax') ) { +% print 'Setup
fee
exempt'; +%} +%if ( dbdef->table('cust_main_county')->column('recurtax') ) { +% print 'Recurring
fee
exempt'; +%} +% +%print ''; +% +%foreach my $cust_main_county ( sort { $a->country cmp $b->country +% or $a->state cmp $b->state +% or $a->county cmp $b->county +% } qsearch('cust_main_county',{}) ) { +% my($hashref)=$cust_main_county->hashref; +% print < +% $hashref->{country} +%END +% +% print "{state} +% ? ' BGCOLOR="#ffffff">'.$hashref->{state} +% : ' BGCOLOR="#cccccc">(ALL)' +% , ""; +% +% print "{county} +% ? ' BGCOLOR="#ffffff">'. $hashref->{county} +% : ' BGCOLOR="#cccccc">(ALL)' +% , ""; +% +% print "{taxclass} +% ? ' BGCOLOR="#ffffff">'. $hashref->{taxclass} +% : ' BGCOLOR="#cccccc">(ALL)' +% , ""; +% +% print qq!! +% if dbdef->table('cust_main_county')->column('taxname'); +% +% print qq!
%
!; +% print qq!
\$
!; +% +% print qq!{setuptax} =~ /^Y$/i ? ' CHECKED' : '' ). +% '>' +% if dbdef->table('cust_main_county')->column('setuptax'); +% +% print qq!{recurtax} =~ /^Y$/i ? ' CHECKED' : '' ). +% '>' +% if dbdef->table('cust_main_county')->column('recurtax'); +% +% print ''; +% +%} +% +%print < +% +% +% +% +% +%END +% +% -print header("Edit tax rates", menubar( - 'Main Menu' => popurl(2), -)); - -print qq!Error: !, $cgi->param('error'), - "" - if $cgi->param('error'); - -print qq!
!, &table(), < - Country - State - County - Taxclass
(per-package classification) - Tax name
(printed on invoices) - Tax - Exempt
per
month - -END - -foreach my $cust_main_county ( sort { $a->country cmp $b->country - or $a->state cmp $b->state - or $a->county cmp $b->county - } qsearch('cust_main_county',{}) ) { - my($hashref)=$cust_main_county->hashref; - print < - $hashref->{country} -END - - print "{state} - ? ' BGCOLOR="#ffffff">'.$hashref->{state} - : ' BGCOLOR="#cccccc">(ALL)' - , ""; - - print "{county} - ? ' BGCOLOR="#ffffff">'. $hashref->{county} - : ' BGCOLOR="#cccccc">(ALL)' - , ""; - - print "{taxclass} - ? ' BGCOLOR="#ffffff">'. $hashref->{taxclass} - : ' BGCOLOR="#cccccc">(ALL)' - , ""; - - print qq!!; - print qq!%!; - print qq!\$!; - print ''; - -} - -print < - - - - - -END - -%>