diff options
Diffstat (limited to 'httemplate/search/cust_pay_pending.html')
| -rwxr-xr-x | httemplate/search/cust_pay_pending.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/search/cust_pay_pending.html b/httemplate/search/cust_pay_pending.html index f0a3a0150..f46e08ab1 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> @@ -44,4 +45,13 @@ my $status_sub = sub { $return. qq! <FONT SIZE="-1">($link)</FONT>!; }; +my $redirect_empty = sub { + my $cgi = shift; + if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { + $p. "view/cust_main.cgi?$1"; + } else { + ''; + } +}; + </%init> |
