X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_pay_pending.html;h=fe82268f629b0968300293eab635a97985d99007;hb=c0c5709fb022b83a482d0b35f7094505766d5868;hp=2afce0ce9a8a182e3f0c91fedd5e0937697e2a4f;hpb=0af38652da3b3be7da2d35b048285ef6f2194e1a;p=freeside.git diff --git a/httemplate/search/cust_pay_pending.html b/httemplate/search/cust_pay_pending.html index 2afce0ce9..fe82268f6 100755 --- a/httemplate/search/cust_pay_pending.html +++ b/httemplate/search/cust_pay_pending.html @@ -1,4 +1,4 @@ -<% include( 'elements/cust_pay_or_refund.html', +<& elements/cust_pay_or_refund.html, 'thing' => 'pay_pending', 'amount_field' => 'paid', 'name_singular' => 'pending payment', @@ -10,8 +10,7 @@ $status_sub, ], 'redirect_empty' => $redirect_empty, - ) -%> +&> <%init> my %statusaction = ( @@ -29,6 +28,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',