summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main_county.cgi
diff options
context:
space:
mode:
authorivan <ivan>2001-08-17 11:05:31 +0000
committerivan <ivan>2001-08-17 11:05:31 +0000
commit94d7e3f0d3431fc1a16afea163367a79ccc78d95 (patch)
treeeaf2544ba973628f7e35a96c91810680785fabe4 /httemplate/edit/cust_main_county.cgi
parent55b29dc1d28b0c27e7f8271e7fe382a36d75d268 (diff)
clean up tax rate editing:
sort by country->state->county, add "collapse state" if the tax rates are the same statewide, redirect "expand state" to the browse, not edit screen
Diffstat (limited to 'httemplate/edit/cust_main_county.cgi')
-rwxr-xr-xhttemplate/edit/cust_main_county.cgi15
1 files changed, 12 insertions, 3 deletions
diff --git a/httemplate/edit/cust_main_county.cgi b/httemplate/edit/cust_main_county.cgi
index 38e6d6877..1b8e76fc7 100755
--- a/httemplate/edit/cust_main_county.cgi
+++ b/httemplate/edit/cust_main_county.cgi
@@ -1,6 +1,6 @@
<%
#
-# $Id: cust_main_county.cgi,v 1.1 2001-07-30 07:36:04 ivan Exp $
+# $Id: cust_main_county.cgi,v 1.2 2001-08-17 11:05:31 ivan Exp $
#
# ivan@sisd.com 97-dec-13-16
#
@@ -11,7 +11,13 @@
# lose background, FS::CGI ivan@sisd.com 98-sep-2
#
# $Log: cust_main_county.cgi,v $
-# Revision 1.1 2001-07-30 07:36:04 ivan
+# Revision 1.2 2001-08-17 11:05:31 ivan
+# clean up tax rate editing:
+# sort by country->state->county,
+# add "collapse state" if the tax rates are the same statewide,
+# redirect "expand state" to the browse, not edit screen
+#
+# Revision 1.1 2001/07/30 07:36:04 ivan
# templates!!!
#
# Revision 1.8 1999/04/09 04:22:34 ivan
@@ -69,7 +75,10 @@ print qq!<FORM ACTION="!, popurl(1),
</TR>
END
-foreach $cust_main_county ( qsearch('cust_main_county',{}) ) {
+foreach $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 <<END;
<TR>