3 my $exportnum = $cgi->param('exportnum');
5 my $old = qsearchs('part_export', { 'exportnum'=>$exportnum } ) if $exportnum;
8 warn join('-', split(',',$cgi->param('options')));
9 my %options = map { $_=>$cgi->param($_) } split(',',$cgi->param('options'));
11 my $new = new FS::part_export ( {
13 $_, scalar($cgi->param($_));
14 } fields('part_export')
21 $error = $new->replace($old,\%options);
23 $error = $new->insert(\%options);
24 # $exportnum = $new->exportnum;
28 $cgi->param('error', $error );
29 print $cgi->redirect(popurl(2). "part_export.cgi?". $cgi->query_string );
31 print $cgi->redirect(popurl(3). "browse/part_svc.cgi");