From 729956733bf21293c801358c3e711c81d7df5b4f Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 27 Apr 2014 14:21:22 -0700 Subject: "on hold" package ordering and status, RT#28508 --- httemplate/edit/process/quick-cust_pkg.cgi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'httemplate/edit/process/quick-cust_pkg.cgi') diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index 7dcd232bc..38d5c4486 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -110,10 +110,6 @@ my $error = ''; my %hash = ( 'pkgpart' => $pkgpart, 'quantity' => $quantity, - 'start_date' => ( scalar($cgi->param('start_date')) - ? parse_datetime($cgi->param('start_date')) - : '' - ), 'salesnum' => $salesnum, 'refnum' => $refnum, 'contactnum' => $contactnum, @@ -133,6 +129,14 @@ my %hash = ( ); $hash{'custnum'} = $cust_main->custnum if $cust_main; +if ( $cgi->param('start') eq 'on_hold' ) { + $hash{'susp'} = 'now'; +} elsif ( $cgi->param('start') eq 'on_date' ) { + $hash{'start_date'} = scalar($cgi->param('start_date')) + ? parse_datetime($cgi->param('start_date')) + : ''; +} + if ( $quotationnum ) { $quotation_pkg = new FS::quotation_pkg \%hash; -- cgit v1.2.1