#!/usr/bin/perl -Tw # # $Id: cust_main_county.cgi,v 1.2 1998-11-18 09:01:34 ivan Exp $ # # ivan@sisd.com 97-dec-13 # # Changes to allow page to work at a relative position in server # bmccane@maxbaud.net 98-apr-3 # # lose background, FS::CGI ivan@sisd.com 98-sep-2 # # $Log: cust_main_county.cgi,v $ # Revision 1.2 1998-11-18 09:01:34 ivan # i18n! i18n! # use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); use FS::UID qw(cgisuidsetup swapuid); use FS::Record qw(qsearch qsearchs); use FS::CGI qw(header menubar popurl table); use FS::cust_main_county; my($cgi) = new CGI; &cgisuidsetup($cgi); print $cgi->header, header("Tax Rate Listing", menubar( 'Main Menu' => popurl(2), 'Edit tax rates' => popurl(2). "/edit/cust_main_county.cgi", )),<expand country to specify a country's tax rates by state.
Click on expand state to specify a state's tax rates by county.

END print table, < Country State County Tax END my($cust_main_county); foreach $cust_main_county ( qsearch('cust_main_county',{}) ) { my($hashref)=$cust_main_county->hashref; print < $hashref->{country} END print "", $hashref->{state} ? $hashref->{state} : qq!(ALL) !. qq!expand country! , ""; print ""; if ( $hashref->{county} ) { print $hashref->{county}; } else { print "(ALL)"; if ( $hashref->{state} ) { print qq!!. qq!expand state!; } } print ""; print <$hashref->{tax}% END } print < END