From ea830c61145a0c659f24e55a4640db4e2036c06f Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 26 Jun 2012 20:28:37 -0700 Subject: quantities for regular packages in addition to one-time charges, RT#13136 --- httemplate/misc/order_pkg.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'httemplate/misc/order_pkg.html') 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') ) { + + <% mt('Quantity') |h %> + + + + +% } + <% mt('Start date') |h %> @@ -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') ) { -- cgit v1.2.1