3 # $Id: cust_main_county.cgi,v 1.2 1998-11-18 09:01:34 ivan Exp $
5 # ivan@sisd.com 97-dec-13
7 # Changes to allow page to work at a relative position in server
8 # bmccane@maxbaud.net 98-apr-3
10 # lose background, FS::CGI ivan@sisd.com 98-sep-2
12 # $Log: cust_main_county.cgi,v $
13 # Revision 1.2 1998-11-18 09:01:34 ivan
19 use CGI::Carp qw(fatalsToBrowser);
20 use FS::UID qw(cgisuidsetup swapuid);
21 use FS::Record qw(qsearch qsearchs);
22 use FS::CGI qw(header menubar popurl table);
23 use FS::cust_main_county;
29 print $cgi->header, header("Tax Rate Listing", menubar(
30 'Main Menu' => popurl(2),
31 'Edit tax rates' => popurl(2). "/edit/cust_main_county.cgi",
33 Click on <u>expand country</u> to specify a country's tax rates by state.
34 <BR>Click on <u>expand state</u> to specify a state's tax rates by county.
39 <TH><FONT SIZE=-1>Country</FONT></TH>
40 <TH><FONT SIZE=-1>State</FONT></TH>
42 <TH><FONT SIZE=-1>Tax</FONT></TH>
46 my($cust_main_county);
47 foreach $cust_main_county ( qsearch('cust_main_county',{}) ) {
48 my($hashref)=$cust_main_county->hashref;
51 <TD>$hashref->{country}</TD>
53 print "<TD>", $hashref->{state}
55 : qq!(ALL) <FONT SIZE=-1>!.
56 qq!<A HREF="!. popurl(2). qq!/edit/cust_main_county-expand.cgi?!. $hashref->{taxnum}.
57 qq!">expand country</A></FONT>!
60 if ( $hashref->{county} ) {
61 print $hashref->{county};
64 if ( $hashref->{state} ) {
65 print qq!<FONT SIZE=-1>!.
66 qq!<A HREF="!. popurl(2). qq!/edit/cust_main_county-expand.cgi?!. $hashref->{taxnum}.
67 qq!">expand state</A></FONT>!;
73 <TD>$hashref->{tax}%</TD>