diff options
author | ivan <ivan> | 2009-08-07 00:39:14 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-08-07 00:39:14 +0000 |
commit | 958afb8d05de67e12df258b57bedcf85028b6253 (patch) | |
tree | 504079330e2f553faf8a899dd8dcebe3d5d138d6 /httemplate/edit/process | |
parent | b3e081bbd2ba95554687a531bc134c00026a3669 (diff) |
don't start recurring billing when a start date hasn't been reached yet either... and since that works, add the start date to new package order, RT#5347
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r-- | httemplate/edit/process/quick-cust_pkg.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index 57c696e7e..7a0f08280 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -49,6 +49,10 @@ my $locationnum = $1; my $cust_pkg = new FS::cust_pkg { 'custnum' => $custnum, 'pkgpart' => $pkgpart, + 'start_date' => ( scalar($cgi->param('start_date')) + ? str2time($cgi->param('start_date')) + : '' + ), 'refnum' => $refnum, 'locationnum' => $locationnum, }; |