summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cust_main_county-expand.cgi
diff options
context:
space:
mode:
authorivan <ivan>2002-05-09 12:38:40 +0000
committerivan <ivan>2002-05-09 12:38:40 +0000
commita63b2729682586d8860290576e9307629424dbe0 (patch)
treefafe65115572dab6a4e0e513edadda21368a1580 /httemplate/edit/process/cust_main_county-expand.cgi
parente324bf00eaee9bd13702348b777642d7096b88a0 (diff)
texas tax!
Diffstat (limited to 'httemplate/edit/process/cust_main_county-expand.cgi')
-rwxr-xr-xhttemplate/edit/process/cust_main_county-expand.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/edit/process/cust_main_county-expand.cgi b/httemplate/edit/process/cust_main_county-expand.cgi
index 64061de..a452711 100755
--- a/httemplate/edit/process/cust_main_county-expand.cgi
+++ b/httemplate/edit/process/cust_main_county-expand.cgi
@@ -27,7 +27,9 @@ foreach ( @expansion) {
my(%hash)=$cust_main_county->hash;
my($new)=new FS::cust_main_county \%hash;
$new->setfield('taxnum','');
- if ( ! $cust_main_county->state ) {
+ if ( $cgi->param('taxclass') ) {
+ $new->setfield('taxclass', $_);
+ } elsif ( ! $cust_main_county->state ) {
$new->setfield('state',$_);
} else {
$new->setfield('county',$_);