diff options
author | ivan <ivan> | 2012-02-13 22:09:25 +0000 |
---|---|---|
committer | ivan <ivan> | 2012-02-13 22:09:25 +0000 |
commit | ca7ff572923114a72daae24e85f33ad89ebb5ab9 (patch) | |
tree | 9b51cad1d4f8ae8e4d167523344392a9639b1042 | |
parent | 0f1ddc8e2690c592ca4cfad3d7d22dc6dab4ddbe (diff) |
default census_year to 2012 going forward, for 2010 census tracts
-rw-r--r-- | FS/FS/cust_main.pm | 4 | ||||
-rw-r--r-- | httemplate/edit/cust_main/bottomfixup.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 95614e7c8..f3f66020a 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -465,7 +465,7 @@ sub insert { $self->signupdate(time) unless $self->signupdate; - $self->censusyear($conf->config('census_year')) if $self->censustract; + $self->censusyear($conf->config('census_year')||'2012') if $self->censustract; $self->auto_agent_custid() if $conf->config('cust_main-auto_agent_custid') && ! $self->agent_custid; @@ -1534,7 +1534,7 @@ sub replace { if ( $self->censustract ne '' and $self->censustract ne $old->censustract ) { # update censusyear whenever tract code changes - $self->censusyear($conf->config('census_year')); + $self->censusyear($conf->config('census_year')||'2012'); } diff --git a/httemplate/edit/cust_main/bottomfixup.js b/httemplate/edit/cust_main/bottomfixup.js index 9d1f1e1c8..bcddd7edf 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') || '2011' %>, + 'year', <% $conf->config('census_year') || '2012' %>, 'address1', cf.elements['ship_address1'].value, 'city', cf.elements['ship_city'].value, 'state', state_el.options[ state_el.selectedIndex ].value, @@ -90,12 +90,12 @@ function update_censustract(arg) { var choose_censustract = '<CENTER><BR><B>Confirm censustract</B><BR>' + '<A href="http://maps.ffiec.gov/FFIECMapper/TGMapSrv.aspx?' + - 'census_year=<% $conf->config('census_year') || '2008' %>' + + 'census_year=<% $conf->config('census_year') || '2012' %>' + '&latitude=' + cf.elements['latitude'].value + '&longitude=' + cf.elements['longitude'].value + '" target="_blank">Map service module location</A><BR>' + '<A href="http://maps.ffiec.gov/FFIECMapper/TGMapSrv.aspx?' + - 'census_year=<% $conf->config('census_year') || '2008' %>' + + 'census_year=<% $conf->config('census_year') || '2012' %>' + '&zip_code=' + cf.elements['ship_zip'].value + '" target="_blank">Map zip code center</A><BR><BR>' + '<TABLE>'; |