summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main.cgi
diff options
context:
space:
mode:
authorivan <ivan>2009-01-24 21:49:04 +0000
committerivan <ivan>2009-01-24 21:49:04 +0000
commitaf02b5d04908f5d9382e636475b15c1923f6f967 (patch)
tree36b7166f10f62f680b07fe9a135fca21cd807e30 /httemplate/edit/cust_main.cgi
parent6c4d9632f4d5cd1164ab9183932fbdf9137945aa (diff)
wtf, don't pop up the geocode chooser when taxproducts are off
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-xhttemplate/edit/cust_main.cgi7
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') ) {