diff options
author | ivan <ivan> | 2001-10-15 14:58:03 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-10-15 14:58:03 +0000 |
commit | 9410e9f656b950a9d4b383a3992fa50bb7a270db (patch) | |
tree | 9cdaced18cfa970edc1d353afa7ff2b648fc257c /httemplate/edit/process/REAL_cust_pkg.cgi | |
parent | a984fa561b6493ae41215c3d26013767f9ce79cb (diff) |
date editing
Diffstat (limited to 'httemplate/edit/process/REAL_cust_pkg.cgi')
-rwxr-xr-x | httemplate/edit/process/REAL_cust_pkg.cgi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/httemplate/edit/process/REAL_cust_pkg.cgi b/httemplate/edit/process/REAL_cust_pkg.cgi new file mode 100755 index 000000000..4f33f6b38 --- /dev/null +++ b/httemplate/edit/process/REAL_cust_pkg.cgi @@ -0,0 +1,20 @@ +<% +#<!-- $Id: REAL_cust_pkg.cgi,v 1.1 2001-10-15 14:58:03 ivan Exp $ --> + +my $pkgnum = $cgi->param('pkgnum') or die; +my $old = qsearchs('cust_pkg',{'pkgnum'=>$pkgnum}); +my %hash = $old->hash; +$hash{'setup'} = $cgi->param('setup') ? str2time($cgi->param('setup')) : ''; +$hash{'bill'} = $cgi->param('bill') ? str2time($cgi->param('bill')) : ''; +my $new = new FS::cust_pkg \%hash; + +my $error = $new->replace($old); + +if ( $error ) { + $cgi->param('error', $error); + print $cgi->redirect(popurl(2). "REAL_cust_pkg.cgi?". $cgi->query_string ); +} else { + print $cgi->redirect(popurl(3). "view/cust_pkg.cgi?". $pkgnum); +} + +%> |