diff options
| author | ivan <ivan> | 2012-02-13 22:09:27 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2012-02-13 22:09:27 +0000 |
| commit | 40ecebc1be001360aad31c50d5c8fbcd147d2eda (patch) | |
| tree | 6fcb42390c10cb7fda0b2783a66f10c8ecdbb186 /FS | |
| parent | 3f10ee8dbeb2641a99f54bc6ad66354401be51bc (diff) | |
default census_year to 2012 going forward, for 2010 census tracts
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/cust_main.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index b42b765ec..26465d089 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'); } |
