1 <% include( '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 'html_init' => include('/elements/init_overlib.html'),
9 'addl_header' => [ 'Time', 'Payment Status', ],
10 'addl_fields' => [ sub { time2str('%r', shift->_date ) },
19 'pending' => 'complete',
23 #wouldn't need to take action on a done state#'done'
27 $FS::CurrentUser::CurrentUser->access_right('Edit customer pending payments');
29 my $status_sub = sub {
31 my $return = $pending->status;
32 my $action = $statusaction{$pending->status};
33 return $return unless $action && $edit_pending;
34 my $link = include('/elements/popup_link.html',
35 'action' => $p. 'edit/cust_pay_pending.html'.
36 '?paypendingnum='. $pending->paypendingnum.
41 'height' => ( $action eq 'delete' ? 480 : 575 ),
42 'actionlabel' => ucfirst($action). ' pending payment',
44 $return. qq! <FONT SIZE="-1">($link)</FONT>!;