summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main.cgi
diff options
context:
space:
mode:
authorjeff <jeff>2009-02-19 13:38:28 +0000
committerjeff <jeff>2009-02-19 13:38:28 +0000
commitc2cf878f3c2c0e3fcd06f400a268d2cf9bd12eb8 (patch)
tree5471b9213296214f882721d34bb70e4a5b2453d3 /httemplate/edit/cust_main.cgi
parente832eb872042cb27881402c5c92a17ce4c0506e9 (diff)
do not attempt to assign a geocode to non us/ca addresses (RT 4857)
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-xhttemplate/edit/cust_main.cgi11
1 files changed, 8 insertions, 3 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index 1e2ab0f6f..3fb70a5bf 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -361,9 +361,14 @@ function update_address(arg) {
% if ( $conf->exists('enable_taxproducts') ) {
- if ( error || ship_error ) {
-
- var url = "cust_main/choose_tax_location.html?data_vendor=cch-zip;city="+document.bottomform.elements['city'].value+";state="+document.bottomform.elements['state'].value+";zip="+document.bottomform.elements['zip'].value+";";
+ if ( ( error || ship_error ) &&
+ ( document.bottomform.elements['country'].value == 'CA' ||
+ document.bottomform.elements['country'].value == 'US'
+ )
+ )
+ {
+
+ var url = "cust_main/choose_tax_location.html?data_vendor=cch-zip;city="+document.bottomform.elements['city'].value+";state="+document.bottomform.elements['state'].value+";zip="+document.bottomform.elements['zip'].value+";country="+document.bottomform.elements['country'].value+";";
// popup a chooser
OLgetAJAX( url, update_geocode, 300 );