Freeside:3:Documentation:Developer/bin/freeside-censustract-update
From Freeside
< Freeside:3:Documentation:Developer
Revision as of 20:11, 27 June 2012 by Ivan (talk | contribs) (Edit via perl MediaWiki framework (1.13))
NAME
freeside-censustract-update - Update census tract codes to the current year.
SYNOPSIS
freeside-censustract-update [ -d date ] user
DESCRIPTION
Finds all customers whose census tract codes don't appear to be current and updates them to the current year. The "current year" is defined by the census_tract configuration variable, not the calendar year.
The -d option tells the script to assume that tract codes last modified after some date are already current. Those customers will just have their 'censusyear' field set to the current year. For all other customers with non-current censusyear values, the current tract code will be looked up externally and stored in the censustract field.
The actual tract code lookup runs from the job queue, because it's slow. A separate job will be created for each customer.