diff options
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
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') ) { |