From 59e56007d602991c13fcb18e928762c070c394e6 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 3 Jun 2008 21:06:22 +0000 Subject: very basic start at adding quantities --- httemplate/search/cust_pkg.cgi | 10 +++++++--- httemplate/view/cust_main/packages.html | 4 ++++ 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'httemplate') diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi index bc2f0cbce..6c63ed412 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -6,6 +6,7 @@ 'count_query' => $count_query, #'redirect' => $link, 'header' => [ '#', + 'Quan.', 'Package', 'Class', 'Status', @@ -25,6 +26,7 @@ ], 'fields' => [ 'pkgnum', + 'quantity', sub { #my $part_pkg = $part_pkg{shift->pkgpart}; #$part_pkg->pkg; # ' - '. $part_pkg->comment; $_[0]->pkg; # ' - '. $_[0]->comment; @@ -84,6 +86,7 @@ }, ], 'color' => [ + '', '', '', '', @@ -100,11 +103,12 @@ FS::UI::Web::cust_colors(), '', ], - 'style' => [ '', '', '', 'b', '', '', '', '', '', '', '', '', '', + 'style' => [ '', '', '', '', 'b', '', '', '', '', '', '', '', '', '', FS::UI::Web::cust_styles() ], - 'size' => [ '', '', '', '-1' ], - 'align' => 'rlcclrrrrrrrl'. FS::UI::Web::cust_aligns(). 'r', + 'size' => [ '', '', '', '', '-1' ], + 'align' => 'rrlcclrrrrrrrl'. FS::UI::Web::cust_aligns(). 'r', 'links' => [ + $link, $link, $link, '', diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index 783494167..b71bdee31 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -87,6 +87,10 @@ Current packages <% $part_pkg->pkg %> - <% $part_pkg->comment %>
+% if ( $cust_pkg->quantity > 1 ) { +       Quantity: <% $cust_pkg->quantity %>
+% } + % unless ( $cust_pkg->get('cancel') ) { % my $br = 0; -- cgit v1.2.1