3 my $refnum = $cgi->param('refnum');
5 my $new = new FS::part_referral ( {
7 $_, scalar($cgi->param($_));
8 } fields('part_referral')
13 my $old = qsearchs( 'part_referral', { 'refnum' =>$ refnum } );
14 die "(Old) Record not found!" unless $old;
15 $error = $new->replace($old);
17 $error = $new->insert;
22 $cgi->param('error', $error);
23 print $cgi->redirect(popurl(2). "part_referral.cgi?". $cgi->query_string );
25 print $cgi->redirect(popurl(3). "browse/part_referral.cgi");