projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sort by clicking on headers, RT#6465
[freeside.git]
/
httemplate
/
search
/
cust_credit.html
diff --git
a/httemplate/search/cust_credit.html
b/httemplate/search/cust_credit.html
index
a3b22b1
..
43f112f
100755
(executable)
--- a/
httemplate/search/cust_credit.html
+++ b/
httemplate/search/cust_credit.html
@@
-7,6
+7,7
@@
#'redirect' => $link,
'header' => \@header,
'fields' => \@fields,
#'redirect' => $link,
'header' => \@header,
'fields' => \@fields,
+ 'sort_fields' => \@sort_fields,
'align' => $align,
'links' => \@links,
'color' => \@color,
'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) };
$align = '';
#amount
push @header, 'Amount';
push @fields, sub { $money_char .sprintf('%.2f', shift->amount) };
+push @sort_fields, 'amount';
$align .= 'r';
push @links, '';
push @color, '';
$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) };
if ($unapplied) {
push @header, 'Unapplied';
push @fields, sub { $money_char .sprintf('%.2f', shift->unapplied_amount) };
+ push @sort_fields, '';
$align .= 'r';
push @links, '';
push @color, '';
$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,
;
'reason',
\&FS::UI::Web::cust_fields,
;
+push @sort_fields, '_date', 'otaker', 'reason';
$align .= 'rll'.FS::UI::Web::cust_aligns(),
push @links, '',
'',
$align .= 'rll'.FS::UI::Web::cust_aligns(),
push @links, '',
'',