diff options
author | ivan <ivan> | 2010-11-11 01:44:43 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-11-11 01:44:43 +0000 |
commit | 033709735189caa804476fc17e9946809516fcf7 (patch) | |
tree | 8e10a68a570f73bbff6199d6b574716c407f4576 /httemplate/search/cust_credit.html | |
parent | 315efbebcacc909a11eb0379bd2f67bd3145243c (diff) |
sort by clicking on headers, RT#6465
Diffstat (limited to 'httemplate/search/cust_credit.html')
-rwxr-xr-x | httemplate/search/cust_credit.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/search/cust_credit.html b/httemplate/search/cust_credit.html index a3b22b113..43f112f8b 100755 --- a/httemplate/search/cust_credit.html +++ b/httemplate/search/cust_credit.html @@ -7,6 +7,7 @@ #'redirect' => $link, 'header' => \@header, 'fields' => \@fields, + 'sort_fields' => \@sort_fields, 'align' => $align, 'links' => \@links, 'color' => \@color, @@ -32,12 +33,13 @@ my $clink = sub { : ''; }; -my (@header, @fields, $align, @links, @color, @style); +my (@header, @fields, @sort_fields, $align, @links, @color, @style); $align = ''; #amount push @header, 'Amount'; push @fields, sub { $money_char .sprintf('%.2f', shift->amount) }; +push @sort_fields, 'amount'; $align .= 'r'; push @links, ''; push @color, ''; @@ -47,6 +49,7 @@ push @style, ''; if ($unapplied) { push @header, 'Unapplied'; push @fields, sub { $money_char .sprintf('%.2f', shift->unapplied_amount) }; + push @sort_fields, ''; $align .= 'r'; push @links, ''; push @color, ''; @@ -63,6 +66,7 @@ push @fields, sub { time2str('%b %d %Y', shift->_date ) }, 'reason', \&FS::UI::Web::cust_fields, ; +push @sort_fields, '_date', 'otaker', 'reason'; $align .= 'rll'.FS::UI::Web::cust_aligns(), push @links, '', '', |