summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2006-12-27 03:29:29 +0000
committerivan <ivan>2006-12-27 03:29:29 +0000
commit1c27ee0bb757186752fb3f88d6b71c6bb1dfd9b1 (patch)
treedcb2abb71ad7758348b6ee1b3a485e10d8f4a361
parent3c8870ee619416f126a65c93d5ef7a2f2e24bc96 (diff)
fix sanity check on taxclass expander
-rwxr-xr-xhttemplate/edit/cust_main_county-expand.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/edit/cust_main_county-expand.cgi b/httemplate/edit/cust_main_county-expand.cgi
index 01f0c1e0c..f56d31941 100755
--- a/httemplate/edit/cust_main_county-expand.cgi
+++ b/httemplate/edit/cust_main_county-expand.cgi
@@ -19,7 +19,11 @@
%
%my $cust_main_county = qsearchs('cust_main_county',{'taxnum'=>$taxnum})
% or die "cust_main_county.taxnum $taxnum not found";
-%die "Can't expand entry!" if $cust_main_county->getfield('county');
+%if ( $taxclass ) {
+% die "Can't expand entry!" if $cust_main_county->getfield('taxclass');
+%} else {
+% die "Can't expand entry!" if $cust_main_county->getfield('county');
+%}
%
%my $p1 = popurl(1);
%print header("Tax Rate (expand)", menubar(