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/misc/order_pkg.html | |
parent | 83b8a19421cb0e62234485961c35154d1357c61b (diff) |
quantities for regular packages in addition to one-time charges, RT#13136
Diffstat (limited to 'httemplate/misc/order_pkg.html')
-rw-r--r-- | httemplate/misc/order_pkg.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index 2332f2028..7aa024a34 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -32,6 +32,15 @@ &> % } +% if ( $conf->exists('invoice-unitprice') ) { + <TR> + <TH ALIGN="right"><% mt('Quantity') |h %> </TD> + <TD> + <INPUT TYPE="text" NAME="quantity" SIZE=4 VALUE="<% $quantity %>"> + </TD> + </TR> +% } + <TR> <TH ALIGN="right"><% mt('Start date') |h %> </TD> <TD COLSPAN=6> @@ -163,6 +172,11 @@ if ( $cgi->param('lock_pkgpart') ) { my $pkgpart = $part_pkg ? $part_pkg->pkgpart : scalar($cgi->param('pkgpart')); +my $quantity = 1; +if ( $cgi->param('quantity') =~ /^\s*(\d+)\s*$/ ) { + $quantity = $1; +} + my $format = $date_format. ' %T %z (%Z)'; #false laziness w/REAL_cust_pkg.cgi? my $start_date = ''; if( ! $conf->exists('order_pkg-no_start_date') ) { |