projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add per-customer "Invoice reports" link, RT#13802
[freeside.git]
/
httemplate
/
search
/
cust_pay_pending.html
diff --git
a/httemplate/search/cust_pay_pending.html
b/httemplate/search/cust_pay_pending.html
index
f0a3a01
..
8b73508
100755
(executable)
--- 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,
],
'addl_fields' => [ sub { time2str('%r', shift->_date ) },
$status_sub,
],
+ 'redirect_empty' => $redirect_empty,
)
%>
<%init>
)
%>
<%init>
@@
-18,7
+19,7
@@
my %statusaction = (
'new' => 'delete',
'pending' => 'complete',
#'authorized' => '',
'new' => 'delete',
'pending' => 'complete',
#'authorized' => '',
-
#'captured' => '
',
+
'captured' => 'capture
',
#'declined' => '',
#wouldn't need to take action on a done state#'done'
);
#'declined' => '',
#wouldn't need to take action on a done state#'done'
);
@@
-44,4
+45,13
@@
my $status_sub = sub {
$return. qq! <FONT SIZE="-1">($link)</FONT>!;
};
$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>
</%init>