1 <% include('/elements/header-popup.html', "Enter $title") %>
3 <% include('/elements/error.html') %>
5 <FORM ACTION="<% $p1 %>process/cust_main_county-expand.cgi" METHOD=POST>
7 <INPUT TYPE="hidden" NAME="taxnum" VALUE="<% $taxnum %>">
9 <TEXTAREA NAME="expansion" COLS="50" ROWS="16"><% $expansion |h %></TEXTAREA>
12 <INPUT TYPE="submit" VALUE="Add <% $title %>">
21 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
23 my($taxnum, $expansion);
24 my($query) = $cgi->keywords;
25 if ( $cgi->param('error') ) {
26 $taxnum = $cgi->param('taxnum');
27 $expansion = $cgi->param('expansion');
30 or die "Illegal taxnum (query $query)";
35 my $cust_main_county = qsearchs('cust_main_county',{'taxnum'=>$taxnum})
36 or die "cust_main_county.taxnum $taxnum not found";
40 die "Can't expand entry!" if $cust_main_county->city;
42 if ( $cust_main_county->county ) {
44 } elsif ( $cust_main_county->state ) {
47 $title = 'States/Provinces';