X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main_county.cgi;h=7d1354d3e69e4493787cbd42c0553565fb237668;hp=4bcfcbe9b8162fc33880b4f1385977954dfa20be;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=15e561850b61b10a92a46d8f3e316d53d4970087 diff --git a/httemplate/edit/cust_main_county.cgi b/httemplate/edit/cust_main_county.cgi index 4bcfcbe9b..7d1354d3e 100755 --- a/httemplate/edit/cust_main_county.cgi +++ b/httemplate/edit/cust_main_county.cgi @@ -1,98 +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) -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 - -%>