RT#18361: Delay package from billing until services are provisioned
[freeside.git] / httemplate / elements / tr-censustract.html
1 % if ($location->country eq 'US' and $censustract) {
2 <TR>
3   <TD ALIGN="right"><% mt('Census tract') |h %></TD>
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>