diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-04-27 14:19:59 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-04-27 14:19:59 -0700 |
commit | a7d8494c57376bfc493fbaa234b250cc86a79a94 (patch) | |
tree | 71c2443321738bccb4c6bbaa0e4f1495e6c099da /httemplate/edit/process/quick-cust_pkg.cgi | |
parent | 14b88b83f22a15b5abb5ba94328f213923a3bb95 (diff) |
"on hold" package ordering and status, RT#28508
also
even with flag set to do so, don't adjust bill dates forward on a package which is billing while suspended, RT#27882
Diffstat (limited to 'httemplate/edit/process/quick-cust_pkg.cgi')
-rw-r--r-- | httemplate/edit/process/quick-cust_pkg.cgi | 12 |
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 c3ab6fec3..f1d8c2696 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')) + : ''; +} + my @cust_pkg_usageprice = (); foreach my $quantity_param ( grep { $cgi->param($_) && $cgi->param($_) > 0 } grep /^usagepricenum(\d+)_quantity$/, |