X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_credit.html;h=43f112f8b6358a04cae264d2213338adb4ac15e0;hb=772a99e959e5a1fa25fde0d0080eccb9d8f6e1d0;hp=a3b22b1135992683152ff8a647208c1c6ea4c01a;hpb=aaf8baf3662e16e9414de236a39f8801a8c41b01;p=freeside.git 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, '', '',