diff options
author | ivan <ivan> | 2008-06-03 21:06:22 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-06-03 21:06:22 +0000 |
commit | 59e56007d602991c13fcb18e928762c070c394e6 (patch) | |
tree | a00adaf397b1cf409943121920337d6cde0475b9 /httemplate | |
parent | 6e378bcfac9d6a5107ba4154b3882aa7ea512905 (diff) |
very basic start at adding quantities
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/search/cust_pkg.cgi | 10 | ||||
-rwxr-xr-x | httemplate/view/cust_main/packages.html | 4 |
2 files changed, 11 insertions, 3 deletions
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; @@ -87,6 +89,7 @@ '', '', '', + '', sub { shift->statuscolor; }, '', '', @@ -100,13 +103,14 @@ 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 %> <BR> +% if ( $cust_pkg->quantity > 1 ) { + Quantity: <B><% $cust_pkg->quantity %></B><BR> +% } + <FONT SIZE=-1> % unless ( $cust_pkg->get('cancel') ) { % my $br = 0; |