X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_pay_pending.html;h=8b73508535c964cef60c256b98574b57ea561a1a;hb=e168ca3db2702bd9a540316cd9bd840238dd19ce;hp=f0a3a01506e2a71cea9b6bd5f388f28c7b7713cb;hpb=7621140d9f8945c54523c05bcac8e79693a16a52;p=freeside.git diff --git a/httemplate/search/cust_pay_pending.html b/httemplate/search/cust_pay_pending.html index f0a3a0150..8b7350853 100755 --- a/httemplate/search/cust_pay_pending.html +++ b/httemplate/search/cust_pay_pending.html @@ -10,6 +10,7 @@ 'addl_fields' => [ sub { time2str('%r', shift->_date ) }, $status_sub, ], + 'redirect_empty' => $redirect_empty, ) %> <%init> @@ -18,7 +19,7 @@ my %statusaction = ( 'new' => 'delete', 'pending' => 'complete', #'authorized' => '', - #'captured' => '', + 'captured' => 'capture', #'declined' => '', #wouldn't need to take action on a done state#'done' ); @@ -44,4 +45,13 @@ my $status_sub = sub { $return. qq! ($link)!; }; +my $redirect_empty = sub { + my $cgi = shift; + if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { + $p. "view/cust_main.cgi?$1"; + } else { + ''; + } +}; +