diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-06-26 20:28:37 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-06-26 20:28:37 -0700 |
commit | ea830c61145a0c659f24e55a4640db4e2036c06f (patch) | |
tree | 09620f5da2924350b46722ee082e7dfd12ced2e6 /httemplate/edit/process | |
parent | 83b8a19421cb0e62234485961c35154d1357c61b (diff) |
quantities for regular packages in addition to one-time charges, RT#13136
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 fab8525..ba4c5b1 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -48,6 +48,9 @@ die 'unknown custnum' unless $cust_main; $cgi->param('pkgpart') =~ /^(\d+)$/ or die 'illegal pkgpart '. $cgi->param('pkgpart'); my $pkgpart = $1; +$cgi->param('quantity') =~ /^(\d+)$/ + or die 'illegal quantity '. $cgi->param('quantity'); +my $quantity = $1; $cgi->param('refnum') =~ /^(\d*)$/ or die 'illegal refnum '. $cgi->param('refnum'); my $refnum = $1; @@ -78,6 +81,7 @@ if ( $cgi->param('qualnum') ) { my $cust_pkg = new FS::cust_pkg { 'custnum' => $custnum, 'pkgpart' => $pkgpart, + 'quantity' => $quantity, 'start_date' => ( scalar($cgi->param('start_date')) ? parse_datetime($cgi->param('start_date')) : '' |