projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
catch bad SMTP settings before they error out sending mail, RT#83775
[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
2afce0c
..
697bdbb
100755
(executable)
--- 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',
'thing' => 'pay_pending',
'amount_field' => 'paid',
'name_singular' => 'pending payment',
@@
-9,15
+9,15
@@
'addl_fields' => [ sub { time2str('%r', shift->_date ) },
$status_sub,
],
'addl_fields' => [ sub { time2str('%r', shift->_date ) },
$status_sub,
],
+ 'addl_sort_fields' => [ 'status' ],
'redirect_empty' => $redirect_empty,
'redirect_empty' => $redirect_empty,
- )
-%>
+&>
<%init>
my %statusaction = (
'new' => 'delete',
'pending' => 'complete',
<%init>
my %statusaction = (
'new' => 'delete',
'pending' => 'complete',
-
#'authorized' => '
',
+
'authorized' => 'complete
',
'captured' => 'capture',
#'declined' => '',
#wouldn't need to take action on a done state#'done'
'captured' => 'capture',
#'declined' => '',
#wouldn't need to take action on a done state#'done'
@@
-29,6
+29,9
@@
my $edit_pending =
my $status_sub = sub {
my $pending = shift;
my $return = $pending->status;
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',
my $action = $statusaction{$pending->status};
return $return unless $action && $edit_pending;
my $link = include('/elements/popup_link.html',