Freeside:4:Documentation:Developer/bin/freeside-censustract-update

From Freeside
< Freeside:4:Documentation:Developer
Revision as of 08:44, 18 November 2015 by Jeremyd (talk | contribs) (Edit via perl MediaWiki framework (1.13))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.