my $conf = new FS::Conf;
my %states = map { $_->state => 1 }
qsearch('cust_main_county', {
- 'country' => $conf->config('defaultcountry') || 'US'
+ 'country' => $conf->config('countrydefault') || 'US'
} );
my @states = sort { $a cmp $b } keys %states;
<TD>Exp.</TD>
<TD>
<SELECT NAME="month">
- <% for ( ( map "0$_", 1 .. 9 ), 11, 12 ) { %>
- <OPTION<%= $_ eq $month ? ' SELECTED' : '' %>><%= $_ %>
+ <% for ( ( map "0$_", 1 .. 9 ), 10 .. 12 ) { %>
+ <OPTION<%= $_ == $month ? ' SELECTED' : '' %>><%= $_ %>
<% } %>
</SELECT>
</TD>
<TD>
<SELECT NAME="year">
<% my @a = localtime; for ( $a[5]+1900 .. $a[5]+1915 ) { %>
- <OPTION<%= $_ eq $year ? ' SELECTED' : '' %>><%= $_ %>
+ <OPTION<%= $_ == $year ? ' SELECTED' : '' %>><%= $_ %>
<% } %>
</SELECT>
</TD>
<TR>
<TD ALIGN="right">
Account holder<BR>
- Social security or tax ID #
+ Social security or tax ID #
</TD>
<TD><INPUT TYPE="text" NAME="ss" VALUE="<%=$ss%>"></TD>
</TR>