From af02b5d04908f5d9382e636475b15c1923f6f967 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 24 Jan 2009 21:49:04 +0000 Subject: [PATCH] wtf, don't pop up the geocode chooser when taxproducts are off --- httemplate/edit/cust_main.cgi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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') ) { -- 2.11.0