[freeside-commits] freeside/httemplate/edit cust_main.cgi, 1.93, 1.94

Ivan,,, ivan at wavetail.420.am
Sat Jan 24 13:49:06 PST 2009


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv25214

Modified Files:
	cust_main.cgi 
Log Message:
wtf, don't pop up the geocode chooser when taxproducts are off

Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main.cgi,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- cust_main.cgi	4 Dec 2008 02:19:24 -0000	1.93
+++ cust_main.cgi	24 Jan 2009 21:49:04 -0000	1.94
@@ -359,14 +359,19 @@
 
   }
 
+% 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') ) {
 



More information about the freeside-commits mailing list