diff options
author | Mark Wells <mark@freeside.biz> | 2012-10-11 10:57:27 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-10-11 10:57:27 -0700 |
commit | 236e788e21048c35ec95aaadcf1ab06875a3c658 (patch) | |
tree | 8d2bfef6b7b16376900b66d3f8d7c00d86d09ded /httemplate/edit/cust_main.cgi | |
parent | 33beebf4cb42eba3e1dd868ad5e0af102de961da (diff) |
merge cleanup
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index f744884d7..8c4eb8375 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -315,9 +315,6 @@ if ( $cgi->param('error') ) { $stateid = ''; $payinfo = ''; - $cust_main->coord_auto('Y'); - $cust_main->ship_coord_auto('Y'); - if ( $cgi->param('qualnum') =~ /^(\d+)$/ ) { my $qualnum = $1; my $qual = qsearchs('qual', { 'qualnum' => $qualnum } ) @@ -357,12 +354,18 @@ if ( $cgi->param('error') ) { my $statedefault = $conf->config('statedefault') || 'CA'; $cust_main->set('bill_location', FS::cust_location->new( - { country => $countrydefault, state => $statedefault } + { country => $countrydefault, + state => $statedefault, + coord_auto => 'Y' + } ) ); $cust_main->set('ship_location', FS::cust_location->new( - { country => $countrydefault, state => $statedefault } + { country => $countrydefault, + state => $statedefault, + coord_auto => 'Y' + } ) ); } |