From: ivan Date: Wed, 27 Dec 2006 03:29:29 +0000 (+0000) Subject: fix sanity check on taxclass expander X-Git-Tag: TRIXBOX_2_6~807 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=1c27ee0bb757186752fb3f88d6b71c6bb1dfd9b1 fix sanity check on taxclass expander --- 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(