X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-censustract-update;h=27a17be366601b866e00cd4f56a67affed6fde71;hb=ad95974fd5f5c00d14630fe834c37eb9131c8a20;hp=af9ad749b6219591d16fe07f6cfb1556eef4f67a;hpb=9f84e0efea1f0fcfce3139519f2b75898f3255b0;p=freeside.git diff --git a/FS/bin/freeside-censustract-update b/FS/bin/freeside-censustract-update old mode 100644 new mode 100755 index af9ad749b..27a17be36 --- a/FS/bin/freeside-censustract-update +++ b/FS/bin/freeside-censustract-update @@ -18,14 +18,14 @@ $FS::UID::AutoCommit = 0; my $dbh = dbh; my $conf = FS::Conf->new; -my $current_year = $conf->config('census_year') - or die "No current census year configured.\n"; +my $current_year = $conf->config('census_legacy') || '2020'; my $date = str2time($opt{d}) if $opt{d}; $date ||= time; # This now operates on cust_location, not cust_main. # Find all locations that, as of $date, did not have # censusyear = the current year. This includes those # that have no censusyear. +local($FS::Record::qsearch_qualify_columns) = 0; my %h_cust_location = map { $_->locationnum => $_ } qsearch( 'h_cust_location',