X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_pkg.cgi;h=bd4a9466fb9c7ca2644e4520f4a0c82784b9b3c6;hb=b9ec1f7c51efb5122b7dc88ccadb34e9e99a3b6f;hp=bc2f0cbced5ce76db17d12ff567fe82f270a6b2c;hpb=69613d0ed870f245f3cd2adf0faaf1b3c1bde3ad;p=freeside.git diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi index bc2f0cbce..bd4a9466f 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; @@ -50,11 +52,10 @@ sub { my $self = shift; my $return = ''; - if ($self->getfield('cancel') || - $self->getfield('suspend')) { - my $reason = $self->last_reason;# too inefficient? - $return = $reason->reason if $reason; - + foreach my $action ( qw ( cancel susp ) ) { + my $reason = $self->last_reason($action); + $return = $reason->reason if $reason; + last if $return; } $return; }, @@ -87,6 +88,7 @@ '', '', '', + '', sub { shift->statuscolor; }, '', '', @@ -100,13 +102,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, '', '', '',