From: ivan Date: Sat, 24 Jan 2009 21:49:04 +0000 (+0000) Subject: wtf, don't pop up the geocode chooser when taxproducts are off X-Git-Tag: root_of_webpay_support~112 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=af02b5d04908f5d9382e636475b15c1923f6f967 wtf, don't pop up the geocode chooser when taxproducts are off --- diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index e7c56978a..8f29c5da2 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -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') ) {