projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d98bc0d
)
tax editor fix for adding additional counties when you already have cities, RT#11144
author
ivan
<ivan>
Wed, 9 Feb 2011 04:42:57 +0000
(
04:42
+0000)
committer
ivan
<ivan>
Wed, 9 Feb 2011 04:42:57 +0000
(
04:42
+0000)
httemplate/edit/process/cust_main_county-add.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/cust_main_county-add.cgi
b/httemplate/edit/process/cust_main_county-add.cgi
index
352c612
..
fc8956b
100755
(executable)
--- 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','');
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',$_);
if ( $cgi->param('what') eq 'state' ) { #??
$new->setfield('state',$_);
+ $new->setfield('county', '');
+ $new->setfield('city', '');
} elsif ( $cgi->param('what') eq 'county' ) {
$new->setfield('county',$_);
} 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($_) : $_ );
} 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($_) : $_ );