wtf, don't pop up the geocode chooser when taxproducts are off
authorivan <ivan>
Sat, 24 Jan 2009 21:49:04 +0000 (21:49 +0000)
committerivan <ivan>
Sat, 24 Jan 2009 21:49:04 +0000 (21:49 +0000)
httemplate/edit/cust_main.cgi

index e7c5697..8f29c5d 100755 (executable)
@@ -359,14 +359,19 @@ 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+";";
     // popup a chooser
     OLgetAJAX( url, update_geocode, 300 );
 
+  } else
+
+% }
 
-  } else if ( changed || ship_changed ) {
+  if ( changed || ship_changed ) {
 
 %   if ( $conf->exists('cust_main-auto_standardize_address') ) {