projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
import Net::Whois::Raw into install/5.005 directory *sigh*
[freeside.git]
/
httemplate
/
edit
/
process
/
cust_main_county-expand.cgi
diff --git
a/httemplate/edit/process/cust_main_county-expand.cgi
b/httemplate/edit/process/cust_main_county-expand.cgi
index
3427790
..
a452711
100755
(executable)
--- a/
httemplate/edit/process/cust_main_county-expand.cgi
+++ b/
httemplate/edit/process/cust_main_county-expand.cgi
@@
-1,4
+1,3
@@
-<!-- $Id: cust_main_county-expand.cgi,v 1.5 2002-02-09 18:24:01 ivan Exp $ -->
<%
$cgi->param('taxnum') =~ /^(\d+)$/ or die "Illegal taxnum!";
<%
$cgi->param('taxnum') =~ /^(\d+)$/ or die "Illegal taxnum!";
@@
-28,7
+27,9
@@
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','');
- if ( ! $cust_main_county->state ) {
+ if ( $cgi->param('taxclass') ) {
+ $new->setfield('taxclass', $_);
+ } elsif ( ! $cust_main_county->state ) {
$new->setfield('state',$_);
} else {
$new->setfield('county',$_);
$new->setfield('state',$_);
} else {
$new->setfield('county',$_);