summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main.cgi
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-11-09 17:03:41 -0800
committerMark Wells <mark@freeside.biz>2012-11-09 17:03:41 -0800
commit84fa358b56b89205fff99927080d5c28c01d57ff (patch)
tree3d379de290752f896db598a39cc8aa1879f1260f /httemplate/edit/cust_main.cgi
parenta5318b8239e3a35cbbeb5510b451f5ba5f622846 (diff)
various customer location-related fixes, #13763
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-xhttemplate/edit/cust_main.cgi18
1 files changed, 10 insertions, 8 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index 0aded597f..be00213e2 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -316,8 +316,6 @@ if ( $cgi->param('error') ) {
$payinfo = '';
$cgi->param('tagnum', FS::part_tag->default_tags);
- $cust_main->coord_auto('Y');
- $cust_main->ship_coord_auto('Y');
if ( $cgi->param('qualnum') =~ /^(\d+)$/ ) {
my $qualnum = $1;
@@ -357,14 +355,18 @@ if ( $cgi->param('error') ) {
my $countrydefault = $conf->config('countrydefault') || 'US';
my $statedefault = $conf->config('statedefault') || 'CA';
$cust_main->set('bill_location',
- FS::cust_location->new(
- { country => $countrydefault, state => $statedefault }
- )
+ FS::cust_location->new( {
+ country => $countrydefault,
+ state => $statedefault,
+ coord_auto => 'Y',
+ } )
);
$cust_main->set('ship_location',
- FS::cust_location->new(
- { country => $countrydefault, state => $statedefault }
- )
+ FS::cust_location->new( {
+ country => $countrydefault,
+ state => $statedefault,
+ coord_auto => 'Y',
+ } )
);
}