[freeside-commits] freeside/httemplate/edit/cust_main bottomfixup.js, 1.14, 1.15

Mark Wells mark at wavetail.420.am
Fri Dec 30 14:11:00 PST 2011


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

Modified Files:
	bottomfixup.js 
Log Message:
track/update census codes by year, #15381

Index: bottomfixup.js
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/bottomfixup.js,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -w -d -r1.14 -r1.15
--- bottomfixup.js	28 Dec 2011 23:33:33 -0000	1.14
+++ bottomfixup.js	30 Dec 2011 22:10:58 -0000	1.15
@@ -38,7 +38,7 @@
   var state_el = cf.elements['ship_state'];
   var census_data = new Array(
     'year',   <% $conf->config('census_year') || '2011' %>,
-    'address', cf.elements['ship_address1'].value,
+    'address1', cf.elements['ship_address1'].value,
     'city',    cf.elements['ship_city'].value,
     'state',   state_el.options[ state_el.selectedIndex ].value,
     'zip',     cf.elements['ship_zip'].value
@@ -62,16 +62,17 @@
 
   var cf = document.CustomerForm;
 
-  var msacode    = argsHash['msacode'];
+/*  var msacode    = argsHash['msacode'];
   var statecode  = argsHash['statecode'];
   var countycode = argsHash['countycode'];
   var tractcode  = argsHash['tractcode'];
-  var error      = argsHash['error'];
   
   var newcensus = 
     new String(statecode)  +
     new String(countycode) +
-    new String(tractcode).replace(/\s$/, '');  // JSON 1 workaround
+    new String(tractcode).replace(/\s$/, '');  // JSON 1 workaround */
+  var error      = argsHash['error'];
+  var newcensus  = argsHash['censustract'];
 
   set_censustract = function () {
 



More information about the freeside-commits mailing list