X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fcust_main_county-add.cgi;h=fcc138f494a8ddf2bfbe68fa92eac8596613e737;hb=c69e68e25b519c7f9d2ad47cb0ae6fc90c0f016c;hp=352c6127c527e33c955b2d9e7c1db6762999e2e3;hpb=40b466a6f51f20313f902be0935c0b08653bf1dd;p=freeside.git diff --git a/httemplate/edit/process/cust_main_county-add.cgi b/httemplate/edit/process/cust_main_county-add.cgi index 352c6127c..fcc138f49 100755 --- a/httemplate/edit/process/cust_main_county-add.cgi +++ b/httemplate/edit/process/cust_main_county-add.cgi @@ -1,7 +1,7 @@ <% include('/elements/header-popup.html', 'Addition successful' ) %> @@ -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($_) : $_ );