summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-04-27 14:21:22 -0700
committerIvan Kohler <ivan@freeside.biz>2014-04-27 14:21:22 -0700
commit729956733bf21293c801358c3e711c81d7df5b4f (patch)
tree6731dfbef39cdc6225026ec1c38b283887dc16dd /httemplate/edit
parentdc54c9e83f5cc315e9e2823e61a9f861f842da48 (diff)
"on hold" package ordering and status, RT#28508
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/process/quick-cust_pkg.cgi12
1 files changed, 8 insertions, 4 deletions
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;