1 <& elements/cust_pay_or_refund.html,
2 'thing' => 'pay_pending',
3 'amount_field' => 'paid',
4 'name_singular' => 'pending payment',
5 'name_verb' => 'pending',
7 'disable_by' => 1, #add otaker to cust_pay_pending?
8 'addl_header' => [ 'Time', 'Payment Status', ],
9 'addl_fields' => [ sub { time2str('%r', shift->_date ) },
12 'redirect_empty' => $redirect_empty,
18 'pending' => 'complete',
20 'captured' => 'capture',
22 #wouldn't need to take action on a done state#'done'
26 $FS::CurrentUser::CurrentUser->access_right('Edit customer pending payments');
28 my $status_sub = sub {
30 my $return = $pending->status;
31 my $action = $statusaction{$pending->status};
32 return $return unless $action && $edit_pending;
33 my $link = include('/elements/popup_link.html',
34 'action' => $p. 'edit/cust_pay_pending.html'.
35 '?paypendingnum='. $pending->paypendingnum.
40 'height' => ( $action eq 'delete' ? 480 : 575 ),
41 'actionlabel' => ucfirst($action). ' pending payment',
43 $return. qq! <FONT SIZE="-1">($link)</FONT>!;
46 my $redirect_empty = sub {
48 if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
49 $p. "view/cust_main.cgi?$1";