$contactnum = $opt{'curr_value'};
} elsif ($prospect_main) {
my @prospect_contact = $prospect_main->prospect_contact;
- $contactnum = $prospect_contact[0]->contactnum if scalar(@cust_contact)==1;
+ $contactnum = $prospect_contact[0]->contactnum if scalar(@prospect_contact)==1;
} else { #$cust_main
$cgi->param('contactnum') =~ /^(\-?\d*)$/ or die "illegal contactnum";
$contactnum = $1;