From 0266575848902925e0615525e4466d835dbff2cf Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 12 Jun 2013 12:52:02 -0700 Subject: fix census tract formatting from EZLocate, #13763 and #23425 --- FS/FS/Misc/Geo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/Misc/Geo.pm b/FS/FS/Misc/Geo.pm index 2ad8311d0..3ab1ea72f 100644 --- a/FS/FS/Misc/Geo.pm +++ b/FS/FS/Misc/Geo.pm @@ -393,7 +393,7 @@ sub standardize_ezlocate { latitude => $match->{MAT_LAT}, longitude => $match->{MAT_LON}, censustract => $match->{FIPS_ST}.$match->{FIPS_CTY}. - sprintf('%04.2f',$match->{CEN_TRCT}), + sprintf('%07.2f',$match->{CEN_TRCT}), addr_clean => 'Y', }; } -- cgit v1.2.1 From d08a4af5ba980ca3df5f821f63500e282d442f73 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 12 Jun 2013 12:52:08 -0700 Subject: disable unique-address check to avoid problems on 3.0, #23425 --- httemplate/edit/cust_main/bottomfixup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/httemplate/edit/cust_main/bottomfixup.js b/httemplate/edit/cust_main/bottomfixup.js index 0de6d9dab..9e18fa0df 100644 --- a/httemplate/edit/cust_main/bottomfixup.js +++ b/httemplate/edit/cust_main/bottomfixup.js @@ -10,8 +10,9 @@ my @fixups = ('copy_payby_fields', 'standardize_locations'); push @fixups, 'confirm_censustract' if $conf->exists('cust_main-require_censustract'); -push @fixups, 'check_unique' - if $conf->exists('cust_main-check_unique') and !$opt{'custnum'}; +# currently doesn't work; disable to avoid problems +#push @fixups, 'check_unique' +# if $conf->exists('cust_main-check_unique') and !$opt{'custnum'}; push @fixups, 'do_submit'; # always last -- cgit v1.2.1