From: ivan Date: Fri, 12 Aug 2011 21:57:43 +0000 (+0000) Subject: fix census geocoding, RT#14060 X-Git-Tag: freeside_2_3_1~333 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=7e811c99a24a513423c9005356d4112018345c3a fix census geocoding, RT#14060 --- diff --git a/httemplate/edit/cust_main/bottomfixup.js b/httemplate/edit/cust_main/bottomfixup.js index 24156f792..2f7839a32 100644 --- a/httemplate/edit/cust_main/bottomfixup.js +++ b/httemplate/edit/cust_main/bottomfixup.js @@ -37,7 +37,7 @@ function post_geocode() { var cf = document.CustomerForm; var state_el = cf.elements['ship_state']; var census_data = new Array( - 'year', <% $conf->config('census_year') || '2009' %>, + 'year', <% $conf->config('census_year') || '2011' %>, 'address', cf.elements['ship_address1'].value, 'city', cf.elements['ship_city'].value, 'state', state_el.options[ state_el.selectedIndex ].value, diff --git a/httemplate/misc/xmlhttp-cust_main-censustract.html b/httemplate/misc/xmlhttp-cust_main-censustract.html index 3ba68afd4..97b7f5a4c 100644 --- a/httemplate/misc/xmlhttp-cust_main-censustract.html +++ b/httemplate/misc/xmlhttp-cust_main-censustract.html @@ -55,13 +55,14 @@ if ( $sub eq 'censustract' ) { my($zip5, $zip4) = split('-',$arg{zip}); + $arg{year} ||= '2011'; #ugh workaround a mess at ffiec - $arg{year} = " $arg{year}" unless $arg{year} = "2010"; + $arg{year} = " $arg{year}" if $arg{year} ne '2011'; my @ffiec_args = ( __VIEWSTATE => $viewstate, __EVENTVALIDATION => $eventvalidation, ddlbYear => $arg{year}, - ddlbYear => ' 2009', + ddlbYear => '2011', #' 2009', txtAddress => $arg{address}, txtCity => $arg{city}, ddlbState => $arg{state},