diff options
author | Mark Wells <mark@freeside.biz> | 2014-11-26 16:55:41 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-11-26 16:55:41 -0800 |
commit | 0f0bc1ef7aafc6b3869c0f71ee2528c1c9897ce6 (patch) | |
tree | b7a70adbcac67c46bff79f0930d5a6ed2104a73f /httemplate/view/cust_main/locations.html | |
parent | 79df9da17cf54366ef027a941c131cb1a016068e (diff) |
don't look up or display census tracts for non-U.S. addresses, #32249
Diffstat (limited to 'httemplate/view/cust_main/locations.html')
-rwxr-xr-x | httemplate/view/cust_main/locations.html | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/httemplate/view/cust_main/locations.html b/httemplate/view/cust_main/locations.html index fdbbc396b..336c1aa98 100755 --- a/httemplate/view/cust_main/locations.html +++ b/httemplate/view/cust_main/locations.html @@ -35,16 +35,18 @@ table.location { <TH COLSPAN=5> <DIV CLASS="<% $loc->disabled ? 'loclabel disabled' : 'loclabel' %>"> <% $loc->location_label %> -% if ( $loc->censustract ) { - <BR> - <FONT SIZE=-1> - <% $loc->censustract %> (<% $loc->censusyear %> census) - </FONT> -% } elsif ( $conf->exists('cust_main-require_censustract') ) { - <BR> - <FONT SIZE=-1 COLOR="#ee3300"> - <% emt('Census tract unknown') %> - </FONT> +% if ( $loc->country eq 'US' ) { # only U.S. census tracts for now +% if ( $loc->censustract ) { + <BR> + <FONT SIZE=-1> + <% $loc->censustract %> (<% $loc->censusyear %> census) + </FONT> +% } elsif ( $conf->exists('cust_main-require_censustract') ) { + <BR> + <FONT SIZE=-1 COLOR="#ee3300"> + <% emt('Census tract unknown') %> + </FONT> +% } % } </DIV> <DIV STYLE="display: inline; float:right;"> |