Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / elements / tr-censustract.html
1 % if ($location->country eq 'US' and $censustract) {
2 <TR>
3   <TH ALIGN="right"><% mt('Census tract') |h %></TH>
4   <TD COLSPAN=5>
5     <SPAN STYLE="background-color: #ffffff; border: 1px solid #ffffff"><% $censustract |h %></SPAN>
6     &nbsp;<% $censusyear |h %>
7   </TD>
8 </TR>
9 % }
10 <%init>
11
12 my $location = shift;
13 my $conf = FS::Conf->new;
14 my ($censustract, $censusyear);
15 if ($location->censustract) {
16   $censustract = $location->censustract;
17   $censusyear = '('. ($location->censusyear || mt('unknown year')) . ')';
18 } elsif ($conf->exists('cust_main-require_censustract')) {
19   $censustract = mt('unknown');
20   $censusyear = '';
21 }
22
23 </%init>