3 my $pkgnum = $cgi->param('pkgnum') or die;
4 my $old = qsearchs('cust_pkg',{'pkgnum'=>$pkgnum});
6 $hash{'setup'} = $cgi->param('setup') ? str2time($cgi->param('setup')) : '';
7 $hash{'bill'} = $cgi->param('bill') ? str2time($cgi->param('bill')) : '';
8 my $new = new FS::cust_pkg \%hash;
10 my $error = $new->replace($old);
13 $cgi->param('error', $error);
14 print $cgi->redirect(popurl(2). "REAL_cust_pkg.cgi?". $cgi->query_string );
16 print $cgi->redirect(popurl(3). "view/cust_pkg.cgi?". $pkgnum);