X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_pay_pending.html;h=8662d19894cafd28bdf0f46e8fd6a47185d0ac83;hb=df21571ae9b56b8645c53053fdabc78ca6eeffed;hp=8b73508535c964cef60c256b98574b57ea561a1a;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984;p=freeside.git diff --git a/httemplate/search/cust_pay_pending.html b/httemplate/search/cust_pay_pending.html index 8b7350853..8662d1989 100755 --- a/httemplate/search/cust_pay_pending.html +++ b/httemplate/search/cust_pay_pending.html @@ -1,18 +1,17 @@ -<% include( 'elements/cust_pay_or_refund.html', +<& elements/cust_pay_or_refund.html, 'thing' => 'pay_pending', 'amount_field' => 'paid', 'name_singular' => 'pending payment', 'name_verb' => 'pending', 'disable_link' => 1, 'disable_by' => 1, #add otaker to cust_pay_pending? - 'html_init' => include('/elements/init_overlib.html'), 'addl_header' => [ 'Time', 'Payment Status', ], 'addl_fields' => [ sub { time2str('%r', shift->_date ) }, $status_sub, ], + 'addl_sort_fields' => [ 'status' ], 'redirect_empty' => $redirect_empty, - ) -%> +&> <%init> my %statusaction = ( @@ -30,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',