summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2011-02-09 04:42:57 +0000
committerivan <ivan>2011-02-09 04:42:57 +0000
commite0914b6ff8d2def6b5b62eb1106d3c560ca21df9 (patch)
treed079188e106e1b1428c700458425cdb272d0f599 /httemplate/edit
parentd98bc0d258abe1bf1b059af7dc701ba3631fd228 (diff)
tax editor fix for adding additional counties when you already have cities, RT#11144
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/process/cust_main_county-add.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_main_county-add.cgi b/httemplate/edit/process/cust_main_county-add.cgi
index 352c6127c..fc8956b0c 100755
--- a/httemplate/edit/process/cust_main_county-add.cgi
+++ b/httemplate/edit/process/cust_main_county-add.cgi
@@ -31,10 +31,14 @@ foreach ( @expansion ) {
my(%hash)=$cust_main_county->hash;
my($new)=new FS::cust_main_county \%hash;
$new->setfield('taxnum','');
+ $new->setfield('taxclass', '');
if ( $cgi->param('what') eq 'state' ) { #??
$new->setfield('state',$_);
+ $new->setfield('county', '');
+ $new->setfield('city', '');
} elsif ( $cgi->param('what') eq 'county' ) {
$new->setfield('county',$_);
+ $new->setfield('city', '');
} elsif ( $cgi->param('what') eq 'city' ) {
#uppercase cities in the US to try and agree with USPS validation
$new->setfield('city', $new->country eq 'US' ? uc($_) : $_ );