X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_pay_pending.html;h=8662d19894cafd28bdf0f46e8fd6a47185d0ac83;hb=df21571ae9b56b8645c53053fdabc78ca6eeffed;hp=54c9935ef0e1bf08259b237223fce057605b6ffe;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/httemplate/search/cust_pay_pending.html b/httemplate/search/cust_pay_pending.html index 54c9935ef..8662d1989 100755 --- a/httemplate/search/cust_pay_pending.html +++ b/httemplate/search/cust_pay_pending.html @@ -9,6 +9,7 @@ 'addl_fields' => [ sub { time2str('%r', shift->_date ) }, $status_sub, ], + 'addl_sort_fields' => [ 'status' ], 'redirect_empty' => $redirect_empty, &> <%init> @@ -28,6 +29,9 @@ my $edit_pending = my $status_sub = sub { my $pending = shift; my $return = $pending->status; + if ( $pending->failure_status ) { + $return = $pending->display_status; + } my $action = $statusaction{$pending->status}; return $return unless $action && $edit_pending; my $link = include('/elements/popup_link.html',